+ Reply to Thread
Results 1 to 7 of 7

VBA excel to outlook but keep default signature

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    VBA excel to outlook but keep default signature

    Hi,

    I've read up and sampled a few scripts but struggling. Want the below script to pop up as new email including default signature.




    Many Thanks
    Gareth
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: VBA excel to outlook but keep default signature

    See Ron de Bruin's site: https://www.rondebruin.nl/win/s1/outlook/signature.htm
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,922

    Re: VBA excel to outlook but keep default signature

    You can use the default signature if you use htmlBody
    Put .display first which presents a blank email that includes the signature only.
    Assign that to the variable Signature
    Then append that to sBody which is the text of the email formatted as html.

    Note that you need to replace + with < in the red line. Had to change to be able to post.
    Please Login or Register  to view this content.
    Pretty much Ron De Bruin's method except that I've found ".HTMLBody = strbody & "<br>" & .HTMLBody" doesn't always work.
    Last edited by ByteMarks; 06-14-2021 at 10:18 AM.

  4. #4
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Re: VBA excel to outlook but keep default signature

    Hi,

    Thought i had replied to this yesterday thanking you guys...but obvs its not posted. Thanks for your help it works great .



    Many Thanks
    Gareth

  5. #5
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Re: VBA excel to outlook but keep default signature

    Hi,

    The only prob now is the sent from is no longer working its gone back to my default email address for some reason?

    Thanks
    Gareth

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,922

    Re: VBA excel to outlook but keep default signature

    Hi,
    Please put the SentOnBehalfOfName line before the Display.

  7. #7
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Re: VBA excel to outlook but keep default signature

    Argh cool I put it before the TO line

    Thanks

+ 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. Excel HYPERLINK to Outlook - Include Default Signature?
    By NewYears1978 in forum Excel General
    Replies: 5
    Last Post: 04-20-2020, 03:20 AM
  2. Send email through Excel with default Outlook signature
    By mgnab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2019, 02:20 PM
  3. [SOLVED] How to add default signature in Outlook using VBA
    By dummy777 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2019, 08:57 AM
  4. [SOLVED] VBA adding default outlook signature to an outlook html message
    By jlive24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2018, 11:59 AM
  5. Paste a picture into outlook from excel and insert default em ail signature
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-02-2017, 01:08 AM
  6. [SOLVED] Get Default Signature of outlook
    By naveenmarapaka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2014, 08:17 AM
  7. Getting Outlook To Add Default Signature
    By McNulty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2009, 01:17 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