Results 1 to 16 of 16

Thread: Added (jobs): Automating Emails from Excel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10

    Relocate Dimension statements to ThisWorkBook

    Try This:

    1)Open the Excel file with the mail macro's
    2)Open Visual Basic editor expand the folder Microsoft Excel Objects
    3)Double click on ThisWorkBook folder in the Microsoft Excel Objects in the current VBAproject
    4)Open Module1 in modules of the project and cut the following code from the top of the module:

    'Set up the Outlook objects.
    Dim objOutlook As Outlook.Application 
    Dim objOutlookMsg As Outlook.MailItem 
    Dim objOutlookRecip As Outlook.Recipient 
    Dim objOutlookAttach As Outlook.Attachment 
    'Declare our global variables to be used in each subroutine.
    Dim CustomerAddress As String 
    Dim CustomerMessage As String
    5)Paste this into item 2 from above (ThisWorkBook folder) General - Declarations
    6) Save, close and Try
    Hope this helps
    Len
    Last edited by mark007; 06-10-2004 at 04:01 AM. Reason: Corrected tag...

Posting Permissions

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