+ Reply to Thread
Results 1 to 4 of 4

VBA code required to draft emails in outlook taking excel inputs.

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Question VBA code required to draft emails in outlook taking excel inputs.

    Dear all,

    I need a VBA code to draft the outlook mails to each unique ID's listed in Column F:F.

    Example for one mail and its contents (refer attachment):
    1) Mail to be drafted for user "[email protected]" with some default subject line.
    2) Mail must carry Columns "A:A, B:B, C:C" data for this user only (From row 1 to 6 for user 'abc') .
    Eg: Number1 Description Number2
    15756599 INSULATOR ABC 0000
    22799842 VEH ABC 0001
    22972933 CAP ABC 0002
    23164924 NEG ABC 0003
    15756599 INSULATOR DEF 0000

    As Presently column "F:F" carries 4 unique users, i need 4 similar mails to be generated (drafted) along with their data from this excel sheet.

    I have VBA code to generate mail in outlook, but i never keyed in mail ID's and content data from excel.

    Number of user is not restricted to 4..Please generalise it to 'n' number of users.

    Please help me.
    Attached Files Attached Files

  2. #2
    Forum Expert 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: VBA code required to draft emails in outlook taking excel inputs.

    Hi mchilapur

    This Code is in the attached and appears to do as you require.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    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
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: VBA code required to draft emails in outlook taking excel inputs.

    Really awesome.... I am dreaming when I could write VBA to this extent...

    Any tips..?

    Many Thanks...

  4. #4
    Forum Expert 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: VBA code required to draft emails in outlook taking excel inputs.

    Hi mchilapur

    Almost every thing you need to know about Excel to Outlook VBA you'll find here.
    http://www.rondebruin.nl/win/winfiles/PDFExamples.txt

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

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

+ 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. Replies: 0
    Last Post: 09-07-2015, 04:05 PM
  2. how to creat an email draft in outlook using excel macros
    By jeethu570 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2015, 08:30 AM
  3. VBA to set up draft emails
    By cralph78 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-15-2015, 09:38 AM
  4. [SOLVED] A VBA Code to Draft / Prepare Multiple Emails in Google
    By spiwere in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2013, 09:38 AM
  5. Excel Hyperlink send email draft via outlook
    By Sithorce in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 10:37 AM
  6. [SOLVED] Sending Outlook emails from Excel; Limits to three emails only?
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2013, 06:53 AM
  7. Create Outlook Draft along with attachment via Excel Macro
    By sekar.suman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 07:37 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