+ Reply to Thread
Results 1 to 3 of 3

***Excel to Outlook mail body—Modification Required***

  1. #1
    Spammer
    Join Date
    06-27-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    183

    ***Excel to Outlook mail body—Modification Required***

    Hi All,

    I have attached a macro which is helping me to copy the excel sheet to outlook mail body.

    my Query is if the mentioned sheet is not available in the workbook, it is pasting the previously copied sheet.

    Example in the attached sheet there are two set of mails can be sent, Mail to Mr.RRR is having all the sheet(Sheet 1 & Sheet2) but Mail to Mr.SSS is not having Sheet 9 but the macro is coping sheet1.

    I need a modification if the given sheet is not available then the message to be pasted like" No Sheet9" instead of pasting sheet1 and it should continue to run(if i want to add some more mails)

    Kindly help to modify the attached sheet.

    Regards,

    Prabhu
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: ***Excel to Outlook mail body—Modification Required***

    Add this function

    Please Login or Register  to view this content.

    Then in your code

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Spammer
    Join Date
    06-27-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: ***Excel to Outlook mail body—Modification Required***

    Hi nathansav ,

    I tried to amend the code but i am getting error.

    Could you help me to amend code in the attached Sheet
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Outlook Mail Automation Modification
    By Liz_Biz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2014, 09:08 AM
  2. Excel VBA outlook - Range in mail body
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2013, 06:33 AM
  3. Read/Export table from Outlook mail body to Excel using VBA
    By pradeepdeepu_001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2013, 06:48 AM
  4. Send e-mail with image on body (.html) on e-mail manager <> outlook
    By mariotnc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2012, 09:28 PM
  5. Replies: 1
    Last Post: 07-07-2006, 07:40 AM

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