+ Reply to Thread
Results 1 to 9 of 9

Macro, Send to Multiple email, embedded file, title from cells, help

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macro, Send to Multiple email, embedded file, title from cells, help

    Hi, I looked over this forum and I have tried using some of the help given to others to make macros to send and doc but I just can get it to work right, here is what I am trying to do.

    ------

    title the email with name from A1 date from B2 and name from D2

    I have 3 spots for emails D2, G2, D3 I want to be able to type emails into those cells and the macro send it to them via Outlook

    Last is to insert the excel file into the body of the email not an attachment so when I open it I don't have to open a file to see my data.


    ---

    This is my first time using macros, and I want to learn to how to get this working. because there is a lot I want to do.

    Thank you for the help

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    Hi

    welcome to the forum Always a good idea to attached a sample of your (spreadsheet)
    In the mean time you could have a look at this
    Please Login or Register  to view this content.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    http://dl.dropbox.com/u/36047266/FTS%20Recap%20xxxxxx%20revison%20macro.xlsm

    Here is what im working on.

    the above I believe would work, only thing I would need is an easier way of putting emails in, so I dont have to change the macro each time.

  4. #4
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    Hi

    Here is the macro, however I can not test because I am at home..

    Sorry change the following code

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jetted; 02-21-2012 at 04:11 PM.

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    sorry for the late answer and thanks very much for the help. OK, I messed with it. I am a little lost. Do I use the first posted or the second ones?

  6. #6
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    Try this one...............
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    hi vmasia,
    or as an option
    the code is provided by Leith Ross and I use it for my needs. I changed it for you ....see if it helps you.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards, John55
    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.

    ...enjoy -funny parrots-

  8. #8
    Registered User
    Join Date
    02-21-2012
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    thank you john, 100% perfect! 100 thank you's. My only question is all I see is this code in the VB editor


    Sub Button1_Click()
    EmailRangeInHTML " ", "Sending Range in HTML test", Worksheets("Sheet1").Range("B6:k42")
    End Sub

    Where is the code you posted located? I am trying to learn this for future uses and I want to get all the info I can.

    thanks again

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Macro, Send to Multiple email, embedded file, title from cells, help

    hi vmasia,
    you're welcome! glad it helped you.
    in vb editor you can see Modul1 with the code posted and Modul2 with the button1 where you can change the range you want to send it!

    NB
    next time, please code tags when posting vba code!

+ 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