+ Reply to Thread
Results 1 to 7 of 7

VBA/Macro to email new range in body of email

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    27

    VBA/Macro to email new range in body of email

    Hello All!

    I'm in need of some help. I've created a database, and am interested in my "OK" button on my userform "SHEET.Main" to trigger an email with the data plotted on the userform in the body of an email. Would it be easier to pull from the database sheet (where the userform is plotting the data to cells), or from the userform itself? I've put excel down for a few years, and am finding it very difficult to pick it back...

    Please Login or Register  to view this content.
    Last edited by excel.junkie; 08-21-2018 at 11:19 AM. Reason: incorrect attachment

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: VBA/Macro to email new range in body of email

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: VBA/Macro to email new range in body of email

    Thanks Alan. Like I said, a long time away from excel (and any forums). Please accept my apology.
    Last edited by alansidman; 08-15-2018 at 12:04 PM.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA/Macro to email new range in body of email

    Hello excel.junkie,

    I've created a database, and am interested in my "OK" button on my userform "SHEET.Main" to trigger an email with the data plotted on the userform in the body of an email.
    Does this mean you want just the entered data from the UserForm emailed or all of the data on the worksheet "Master List" emailed?

    Will the email address be fixed or variable?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: VBA/Macro to email new range in body of email

    Does this mean you want just the entered data from the UserForm emailed or all of the data on the worksheet "Master List" emailed?

    Will the email address be fixed or variable?
    Hello Leith, and thanks for the question.

    Entering info onto the userform plots the data on the master list. Only the data entered into the userform, (which becomes a single entry on the Master List) would be required for each fixed-addressed email. I do not want to send the whole file each time a new entry is created (I have this code from a past project).

    Not sure how, or which way would be easier to pull the data from. Any help/assistance would be greatly appreciated.

  6. #6
    Registered User
    Join Date
    09-11-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: VBA/Macro to email new range in body of email

    any ideas?

  7. #7
    Registered User
    Join Date
    09-11-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: VBA/Macro to email new range in body of email

    bump......

+ 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: 05-28-2018, 09:53 AM
  2. [SOLVED] VBA to email pre-defined range in the email message body
    By JDobbsy1987 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-05-2017, 08:04 PM
  3. [SOLVED] sending email with specific range as email body vba modification
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2014, 11:24 AM
  4. How to send email from excel using VBA with Cell Range (Including Images) as Email Body
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 05:06 AM
  5. Replies: 0
    Last Post: 02-21-2013, 04:46 AM
  6. Replies: 2
    Last Post: 08-01-2012, 02:47 PM
  7. Replies: 6
    Last Post: 12-02-2011, 02:14 PM

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