Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Mailto: Query (Excel 2002)

    Hi

    I have created a macro to to send a workbook to Outlook as an attachement, Is it possible to automaticaly insert the address, for example Blah-Blah@ntlworld.com.
    The reason being lots of people will be using the workbook but they won't always know the address.

    Many Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mailto: Query (Excel 2002)

    What is the code of the macro, at least the relevant part?

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Mailto: Query (Excel 2002)

    Hi Hans

    Is this what you need

    ActiveWindow.ScrollRow = 1
    Application.Dialogs(xlDialogSendMail).Show
    ActiveWindow.ScrollRow = 2
    ActiveWindow.ScrollRow = 3

    Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mailto: Query (Excel 2002)

    Try

    Application.Dialogs(xlDialogSendMail).Show arg1:="blah-blah@ntlword.com"

    (Do you really need the ScrollRow instructions?)

  5. #5
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Mailto: Query (Excel 2002)

    Hi Hans

    That works like a dream, I removed all the ScrollRow instructions.

    Many thanks

    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •