+ Reply to Thread
Results 1 to 3 of 3

excel VB to email issues

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    excel VB to email issues

    I am almost done with my email VB, but having a couple of issue:

    The first is I have a cancel button on a prompt that is supposed to open the VB editor, but currently it does not. I have tried

    If vbCancel Then Application.VBE.MainWindow.Visible = True and If vbCancel Then Application.SendKeys "%{F11}", True
    Both do not open the editor.

    The second issue is I can not seem to figure out is how to email a message from either C2 or D2 to multiple users? I think it has something to do with the offset in bold but I'm not sure. Hopefully, this is almost done and close. Thank you .

    VB

    Please Login or Register  to view this content.
    Thank you .

  2. #2
    Registered User
    Join Date
    10-10-2015
    Location
    Hoboken, Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    93

    Re: excel VB to email issues

    Hi,

    The value you get from the buttons Yes, No and Cancel in a messagebox is an integer. So first of all you need to declare an answer, and use it like this:
    Please Login or Register  to view this content.
    Greetings,

    Cheetahke

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: excel VB to email issues

    I have made the change and the editor does not open when cancel is clicked. Nothing needs to happen except opening the editor as the cancel button is more for debugging. Thank you .

    VB
    Please Login or Register  to view this content.

+ 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. 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
  2. vba pull data from outlook body of email through email or subject of mail into excel
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2014, 04:37 AM
  3. Replies: 2
    Last Post: 02-14-2014, 12:03 AM
  4. [SOLVED] Extracting email chain email address and converting to Excel column
    By Leah_Hael in forum Excel General
    Replies: 4
    Last Post: 12-28-2012, 04:05 PM
  5. How to parse data in Outlook email using HTML version of email back to excel
    By bnasty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-31-2012, 02:54 PM
  6. Email 'From' issues
    By Sturmmann in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2012, 10:30 PM
  7. Excel Email Macro VBA - How to send an email once all required fields have been fille
    By wallacm2009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 10:51 AM
  8. Issues with Outlook Email Macro on Blackberry
    By jhabel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2010, 11: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