+ Reply to Thread
Results 1 to 6 of 6

Email Spreadsheet with Outlook Macro

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Owensboro, KY
    MS-Off Ver
    Excel 2010
    Posts
    10

    Email Spreadsheet with Outlook Macro

    I am using this code below to generate a copy of my spreadsheet and email it to someone. When I run this code, it will display 4 email windows (all the exact same), how to I correct this? I have also tried to use the .Send instead of .Display but outlook pops up and says "A program is trying to send an e-mail on your befalf.......ect" and when I click allow, excel thinks it didn't work and keeps trying to send over and over and over until I deny and end the macro.

    Please Login or Register  to view this content.
    Thanks,
    Chris
    Last edited by chriswathen; 10-24-2012 at 10:33 AM.

  2. #2
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email Spreadsheet with Outlook Macro

    Hi Chris

    I'd think it's because you have 4 worksheets...comment out those lines of code.
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Owensboro, KY
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Email Spreadsheet with Outlook Macro

    I do have a total of 4 worksheets in this workbook. How would I make it only send the one spreadsheet "RR Tracker"?

  4. #4
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email Spreadsheet with Outlook Macro

    Hi Chris

    Comment out the indicated lines of code...see what happens.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    Owensboro, KY
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Email Spreadsheet with Outlook Macro

    Perfect. Thank you!

  6. #6
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email Spreadsheet with Outlook Macro

    You're welcome...glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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