+ Reply to Thread
Results 1 to 3 of 3

Excel Email Macro

  1. #1
    Registered User
    Join Date
    11-11-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Post Excel Email Macro

    HI, I have an EXCEL marco designed, which searches a particular folder (using a browsefolder function) for excel attachments, then it opens each file in turn, uses the filename (minus the .xls) and searches a worksheet using vlookup which contains email addresss to then populate the ".to" variable and automatically saves the the email to my oulook, as well as saving the open workbook as an attachment.

    However, I cannot get the ".to" to be populated byt the email address, which is saved as a variable "Smail". Can anyone help? I am at my wits end....

    I'm using Windows XP & Excel 2003/Outlook 2003

    Please Login or Register  to view this content.
    Last edited by Airdrielad; 11-11-2010 at 12:46 PM.

  2. #2
    Registered User
    Join Date
    11-11-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Email Macro

    Finally found the problem, The vlookup was referring to a worksheet that wasnt currently active, therefore the ".To" box was always empty. I have since added the following code in just before the Vlookup function:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Excel Email Macro

    Thanks for taking the time to post back with your resolution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1