+ Reply to Thread
Results 1 to 3 of 3

Sending a email via VBA error

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Sending a email via VBA error

    I have a code to email the active spreadsheet however I have an error with it which prevents the file from being sent.

    Once the macro is activated it opens an email up with the correct to:, CC:, Subject and Body text but when I click send I get the error message (in outlook):

    ''The operation cannot be performed because the object has been deleted''

    Anyone know why this would be?

    Ideally I would like a Macro that:
    Saves the spreadsheet
    Sends an email to set people with a subject and body text
    closes the spreadsheet


    Paul

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,428

    Re: Sending a email via VBA error

    Hard to tell without seeing any code.

    Perhaps this will help
    http://www.rondebruin.nl/mail/folder1/mail2.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Sending a email via VBA error

    The code is below - I am unable to wrap it - Ill amend the post when i have access to another pc tonight - I am restricted on this network to wrap code/attach files etc

    Please Login or Register  to view this content.

    This code does not include the Save and Close actions I want to include
    Last edited by Andy Pope; 03-10-2009 at 12:12 PM.

+ 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