+ Reply to Thread
Results 1 to 7 of 7

How to Add signature to VBA without using the .Display Property

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    How to Add signature to VBA without using the .Display Property

    Hi everyone,
    I wrote a macro that sends automated emails with specific information to each email contact (each row is a different contact)
    What I can't seem to figure out is how to add the signature to the email without using the . Display tag(which can cause the procedure to be a lot more lengthy - as there can be about 20 emails sent in each batch)

    Help would be much appreciated!

  2. #2
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: How to Add signature to VBA without using the .Display Property

    Before going into the With OutMail part of the code, the one that contains .To, .CC, .Send etc, there should be another .Display outside of that With part.

    Even thought it displays the e-mail, it's only for a very short period of time and just to add the siggy. I remember I had problems adding the sig in the normal With OutMail part and the following Outlook signature part of the code solved that issue.

    Here's the code I use (credits to Ron de Bruin I think):
    Please Login or Register  to view this content.
    To show your appreciation
    Click ★ Add reputation!

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: How to Add signature to VBA without using the .Display Property

    Hi Mrrrr,
    Thank you very much for your reply.
    Yeah, I actually wanted to know if there is an option to send the email without Mail. Display property and still show the signature.
    Maybe there is an option to add a signature manually using image and text from a file , and keeping the same fast send format?

  4. #4
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: How to Add signature to VBA without using the .Display Property

    I remember trying to find a solution back then and settling with that code above.

    I guess it all depends on the type of signature: simple image and text, just one or the other.
    Mine has table with invisible borders, images, colored text, e-mail, website, so it's stored in a rtf file and getting all that somehow was kind of a pita.

    But there could be a way of getting the signature from the rtf file stored in C:\Users\USERNAME\AppData\Roaming\Microsoft\Signatures or the htm+files stored in the same location.

  5. #5
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: How to Add signature to VBA without using the .Display Property

    Alright, so I found a solution:
    Please Login or Register  to view this content.
    works smoothly and shows the signature, without the preview.
    All it requires is the path to the image (which is the signature).

    Thanks for the help

  6. #6
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: How to Add signature to VBA without using the .Display Property

    Posted the HTML tags like that because I could not upload it as it is due to excelforum restrictions on HTML for some reason, but its the same code without the spaces between the tags,

    either way its just adding an image tag

  7. #7
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: How to Add signature to VBA without using the .Display Property

    But the funny thing is although I am seeing that the image in outlook outgoing email is showing, in gmail and outlook mobile it does not show(shows broken image)

+ 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: 3
    Last Post: 04-15-2015, 09:34 PM
  2. Excel macro to display a mail with Lotus without signature
    By Galven in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2015, 04:22 AM
  3. Combo Box Display Property
    By Meli602 in forum Excel General
    Replies: 3
    Last Post: 11-01-2008, 02:15 AM
  4. Display Alerts property in MFC
    By Jen in forum Excel General
    Replies: 0
    Last Post: 07-05-2006, 03:15 PM
  5. [SOLVED] How to get Signature property!
    By Ahmad Jalil Qarshi in forum Excel General
    Replies: 1
    Last Post: 03-08-2005, 10:06 AM
  6. [SOLVED] How to get Signature property!
    By Ahmad Jalil Qarshi in forum Excel General
    Replies: 1
    Last Post: 03-08-2005, 10:06 AM
  7. [SOLVED] How to get Signature property!
    By Ahmad Jalil Qarshi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2005, 10:06 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