+ Reply to Thread
Results 1 to 18 of 18

Macro generating email but not inserting signature line

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Macro generating email but not inserting signature line

    I have a the following macro that looks through a range of cells and generates emails based on the date. The macro generates the email but does not insert my signature line. Any help that yall can provide is greatly appreciated
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    You don't appear to add the signature you get here to the email.

    Please Login or Register  to view this content.
    I would have expected to see something like this in the code.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    I did not notice that I had not added that and I added that portion however the signature still does not load

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    Is Signature definitely being populated?

    It won't be if the file colelabhart.htm isn't found.

    If it is being populated are you sure it's not being added?

    It could be added but not displayed because a problem with the HTML.

  5. #5
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    The name that is shows in the signatures folder has a space which I added the signature now loads. However the signature has an image in it that does not load and displays the image cannot be loaded image any ideas on this problem.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    If you want to display an image in the body of an email you need to attach the image and add appropriate HTML code for it.

    Since you are adding the signature to the body I think you'll need to do that.

    PS This code looks familiar, is it from the Ron DeBruin site?

  7. #7
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    Yes it is. Could you point me in the right direction for attaching the image part of the signature?

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    Do you have the filename of the image?

    If you do the first thing you need to do is attach it to the email.
    Please Login or Register  to view this content.
    Then you'll need to alter the HTML of the signature to include this, for the image.

    HTML Code: 
    That's how you embed an image in the body of an email so since the signature is part of the body I think it should work.

  9. #9
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    I think we have a misunderstanding the image is part of the signature its a company logo that is apart of every employee's email signature rather than a image that I want to attach. I have attached a picture that may explain the problem more accurately.signature.png

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    I['m not sure I have misunderstood, you want to display an image in the signature of the email, the signature of the email is part of the body of the email, to display an image in the body of an email you need to attach the image to the email and add the HTML code I suggested.

  11. #11
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    Then the misunderstanding is on my part. I have input the code as you suggested however I believe I did not properly insert your HTML coding as I am unfamiliar with that and I am hesitant to edit anything in the image because this macro is operating as part of a larger project used by multiple people and I would like to avoid having to edit the images code on every computer. If there is not an easy work around for this I think I will just remove the signature generating portion and have the people manually add their signature to avoid this problem.

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    You wouldn't need to change the actual file that contains the HTML code for the signature.

    All you would need to do is replace the code for the image in the string Signature with the code I suggested.

  13. #13
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    Ok I am glad I don't need to edit the image file. I have resolved this issue and the image now loads however a new issue has popped up image loads below the notification which is not the end of the world but it still has a place where it tried to load the image and did not like in the bottom picture I posted. I have posted the code as I have edited it perhaps I have miss placed something? Thank you again for all of your help.
    Please Login or Register  to view this content.

  14. #14
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    Not quite sure I follow where you want the signature/image but you could try switching things around.
    Please Login or Register  to view this content.
    If that doesn't work then you might need to play about with the HTML in the code.

  15. #15
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    I think the problem is that the signature has the image embedded in it so it fails to load the embedded image but can load one that is attach via your method. For the most part I believe the problem is solved and I just need to play around with it some. Thank you again for your help.

  16. #16
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro generating email but not inserting signature line

    Try attaching the image and saving the email before adding the body.

  17. #17
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    I tried the method you described and unfortunately it did not solve the problem.
    Please Login or Register  to view this content.
    However I was looking back through Ron's websire in his first example he uses the following code to load a signature with an image I copied his example and it does not even load my signature.
    Please Login or Register  to view this content.
    This method seems to be what I am looking for perhaps editing this would be easier?

  18. #18
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: Macro generating email but not inserting signature line

    I have solved my own problem regarding the method I mentioned. I my attempt to use Ron's code I removed one of the displays which allows the signature to load so my signature now loads and I have successfully modified my macro to load the signature. Thank you again for the assist.
    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. [SOLVED] Inserting Signature line into outlook email
    By clabhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2014, 02:58 PM
  2. generating automatic email with default signature and hyperlink
    By jerrydiaz in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2014, 11:55 AM
  3. Macro to send email with signature depending on cell content
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2013, 11:39 AM
  4. Add line breaks and signature to Outlook email
    By kirtchristensen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2011, 07:29 PM
  5. Signature Line: Macro to sign
    By JDavis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2009, 03:00 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