+ Reply to Thread
Results 1 to 10 of 10

Help with sending emails via vbs and excel

  1. #1
    Registered User
    Join Date
    04-29-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    5

    Question Help with sending emails via vbs and excel

    I am wondering if i have even chose the right path to make this work, I have been reading and watching different videos but am stuck. Daily I have to send emails which there are 8-10 different templates in which I am constantly just copying and pasting the following into outlook and sending them from a shared email address that we use:
    1. 8-10 different email bodies in which the only changing variables are the Name and the Request Date
    2. Email Address
    3. Email Subject

    Here are some snaps of what I have done so far to give an idea of where i am at

    Attachment 458433
    Attachment 458434

    Screen 1 is just the GUI where in theory

    1 enter name
    2 enter the email address
    3 enter the date they requested access
    4 select the message they should get about there status PQ1,PQ2,PQ3 etc
    5 click generate to populate the Body of the email with the Variables (Name and Request Date) in the list box to do a final once over
    6 send

    screen 2 is to show how i have come to map everything out I set up each sheet like an email with each sheet by naming it the applicable status for the sheet name and housing the email body text that i want to use in cell B6.

    What I am stuck on is the input of the data and sending the variables that i enter in the gui to cell B6 on the applicable sheet in the proper place and then getting it to populate so I can send it. wondering i there is any good reference points or material for this type of formula if even such exist

    Capture.PNG
    Capture2.PNG

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with sending emails via vbs and excel

    Unfortunately, your attachments didn't go through, and a lot of us are unable to see images on here. Is it possible to attach workbook with what you have and what you want with the code you are using?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    04-29-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    5

    Re: Help with sending emails via vbs and excel

    sure this is my code so far

    Please Login or Register  to view this content.
    i have setup the selection boxes so far but need to match up my input boxes
    Last edited by demoman0602; 04-30-2016 at 09:27 AM.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with sending emails via vbs and excel

    Thank you for posting the code. Two things though:
    1) If you could, please click Edit Post on your original post then highlight your code and then click the # button above the text box to add the code tags to the code. After doing these steps, your code
    Please Login or Register  to view this content.
    after you save the post.

    2) Do you have a sample workbook you can attach?

  5. #5
    Registered User
    Join Date
    04-29-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    5

    Post Re: Help with sending emails via vbs and excel

    here it is
    Last edited by demoman0602; 05-02-2016 at 10:30 AM.

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Help with sending emails via vbs and excel

    Before I get into more detail, try using this sub. Security issues can be a problem for some. Change [email protected] to yours.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Help with sending emails via vbs and excel

    Removed post about code tags because OP has added code tags.
    Last edited by gmr4evr1; 04-30-2016 at 09:36 AM.

  8. #8
    Registered User
    Join Date
    04-29-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    5

    Re: Help with sending emails via vbs and excel

    Sorry got the code box format going now
    The code works for the combobox and the send mail feature, im having an issue with what string i would need to combine the name, and dates to assemble them into the email so it can be sent
    Last edited by demoman0602; 04-30-2016 at 02:30 PM.

  9. #9
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Help with sending emails via vbs and excel

    File attachments are not working for me right now so here is a link. It should give you some ideas.

    https://www.dropbox.com/s/7heimzrdqj...form.xlsm?dl=0

  10. #10
    Registered User
    Join Date
    04-29-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by Kenneth Hobson View Post
    File attachments are not working for me right now so here is a link. It should give you some ideas.

    https://www.dropbox.com/s/7heimzrdqj...form.xlsm?dl=0
    Thanks this makes it real clear

+ 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. Sending emails from excel using VBA
    By annux3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2015, 03:40 AM
  2. Sending Emails Using Excel & VBA
    By dthennessy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 04:07 AM
  3. [SOLVED] Sending emails from excel
    By TraceyQld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2014, 04:10 AM
  4. [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
  5. Sending emails from Excel
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2010, 02:30 PM
  6. Sending macro emails using excel: Send emails with their passwords.
    By loveisblind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 03:16 PM
  7. Help Sending Emails From Excel
    By mrk0 in forum Excel General
    Replies: 1
    Last Post: 07-06-2005, 02:05 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