+ Reply to Thread
Results 1 to 6 of 6

How can commandbuttons sent via excel vba, be made to work in outlook?

  1. #1
    Registered User
    Join Date
    08-14-2014
    Location
    boston, ma
    MS-Off Ver
    version 14.0.6023.1000 (32bit) Year2010
    Posts
    13

    How can commandbuttons sent via excel vba, be made to work in outlook?

    Hello There,
    I have a process which sends rows from excel to outlook and tried adding commandbuttons that when clicked will generate an email reply with some custom text. The user then has to click 'reply' to send. The commandbuttons arrive as images. Is it a possible to get them to work in outlook?

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: How can commandbuttons sent via excel vba, be made to work in outlook?

    Try sending a mailto link in an image. These mailto instructions work for Excel as well as Outlook. https://support.office.com/en-au/art...4-5b8ee6ec1dd0
    To mark "Solved" go to Thread Tools.

  3. #3
    Registered User
    Join Date
    08-14-2014
    Location
    boston, ma
    MS-Off Ver
    version 14.0.6023.1000 (32bit) Year2010
    Posts
    13

    Re: How can commandbuttons sent via excel vba, be made to work in outlook?

    I am definitely closer to getting the result I am looking for. The pictures have been added and a hyperlink with my email address does generate an email. What I would also like to see is the original subject. I don't want to have to type the subject in the hyperlink every time- as it changes. Is there a way to have the subject as sent in the outlook email automatically populate the hyperlink generated reply?

  4. #4
    Registered User
    Join Date
    08-14-2014
    Location
    boston, ma
    MS-Off Ver
    version 14.0.6023.1000 (32bit) Year2010
    Posts
    13

    Re: How can commandbuttons sent via excel vba, be made to work in outlook?

    Did more searching to try and resolve my issue....added picture and added hyperlink formula for sending email plus custom subject and my last step is to add myexcel header and a of columns.


    Body text has to be a combination of $C$1 & C2:O2. I have tried entering ...."&body"=&C$1& &C2:O2, "NO") but that didn't work..any help would be appreciated

    =HYPERLINK("mailto:[email protected]"&"?subject="&F2&"_Vote Deadline_ "&TEXT(L2,"MM/DD/YYYY"),"NO")

  5. #5
    Registered User
    Join Date
    08-14-2014
    Location
    boston, ma
    MS-Off Ver
    version 14.0.6023.1000 (32bit) Year2010
    Posts
    13

    Re: How can commandbuttons sent via excel vba, be made to work in outlook?

    Correction this is what I have tried and it does not work at all I get the "VALUE error

    =HYPERLINK("mailto:[email protected]"&"?subject="&F1&"_Vote Deadline_ "&TEXT(L1,"MM/DD/YYYY")& "&body=" &$C$1&C2:O2, "NO")

  6. #6
    Registered User
    Join Date
    08-14-2014
    Location
    boston, ma
    MS-Off Ver
    version 14.0.6023.1000 (32bit) Year2010
    Posts
    13

    Re: How can commandbuttons sent via excel vba, be made to work in outlook?

    So I don't know how to get commandbuttons sent via excel to run my vba so as suggested as a workaround, here is my completed hyperlink. My process is I send a row via an excel macro and the recipient selects one of 2 hyperlinks from outlook that generates an email response to me with a (plaintext) subject and body taken from my excel spreadsheet in addition based on their selection, there is custom text.

    I added several cells after ["&TEXT(L1,"MM/DD/YYYY")&] and started a new line for the body of my email response for "Notes:". For those of you interested and find this thread meaningful..FYI "VOTE WITH" at the end is the link name that is visible:

    =HYPERLINK("mailto:[email protected]"&"?subject=Vote "&C1&" Deadline "&TEXT(M1,"MM/DD/YYYY")&"&body=Vote With "&C2&" "&G2&" "&O2&" Meeting "&TEXT(K2,"MM/DD/YYYY")&"%0ANotes: ","VOTE WITH")

+ 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: 4
    Last Post: 02-17-2015, 04:34 PM
  2. Excel 2003/Outlook Code Does not Work in Outlook 2010
    By blackscholes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2014, 12:58 PM
  3. Excel/Outlook 2007 vba code doesn't work in Excel/Outlook 2010
    By eveloy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 10:39 PM
  4. Excel/Outlook 2007 vba code doesn't work in Excel/Outlook 2010
    By eveloy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2014, 07:44 PM
  5. Simple Class Module - Adding commandbuttons at runtime - Will not work
    By UpSkill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 04:07 AM
  6. Replies: 5
    Last Post: 04-16-2012, 08:12 PM
  7. does my excel form with vba made for 2003 work in the 2010 version?
    By impartrudie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-23-2011, 08:56 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