[vba] How to add default signature in Outlook

I need 50 rep to post a comment against the Signature Option I found most helpful, however I had an issue with images not showing correctly so I had to find a work around. This is my solution:

Using @Morris Maynard's answer as a base https://stackoverflow.com/a/18455148/2337102 I then had to go through the following:

Notes:
Back up your .htm file before starting, copy & paste to a secondary folder

  1. You will be working with both the SignatureName.htm and the SignatureName_files Folder

  2. You do not need HTML experience, the files will open in an editing program such as Notepad or Notepad++ or your specified HTML Program

  3. Navigate to your Signature File location (standard should be C:\Users\"username"\AppData\Roaming\Microsoft\Signatures)

  4. Open the SignatureName.htm file in a text/htm editor (right click on the file, "Edit with Program")

  5. Use Ctrl+F and enter .png; .jpg or if you don't know your image type, use image001 You will see something like: src="signaturename_files/image001.png"

  6. You need to change that to the whole address of the image location C:\Users\YourName\AppData\Roaming\Microsoft\Signatures\SignatureNameFolder_files\image001
    or
    src="E:\location\Signatures\SignatureNameFolder_files\image001.png"

  7. Save your file (overwrite it, you had of course backed up the original)

  8. Return to Outlook and Open New Mail Item, add your signature. I received a warning that the files had been changed, I clicked ok, I needed to do this twice, then once in the "Edit Signatures Menu".

    Some of the files in this webpage aren't in the expected location. Do you want to download them anyway? If you're sure the Web page is from a trusted source, click Yes."

  9. Run your Macro event, the images should now be showing.

Credit
MrExcel - VBA code signature code failure: http://bit.ly/1gap9jY

Examples related to vba

Copy filtered data to another sheet using VBA Better way to find last used row Check if a value is in an array or not with Excel VBA Creating an Array from a Range in VBA Excel: macro to export worksheet as CSV file without leaving my current Excel sheet VBA: Convert Text to Number What's the difference between "end" and "exit sub" in VBA? Rename Excel Sheet with VBA Macro Extract Data from PDF and Add to Worksheet Quicker way to get all unique values of a column in VBA?

Examples related to ms-access

How to get parameter value for date/time column from empty MaskedTextBox Access And/Or exclusions Get length of array? How to pass an array to a function in VBA? How to insert values into the database table using VBA in MS access Access 2013 - Cannot open a database created with a previous version of your application Does VBA contain a comment block syntax? java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occurring. Why? Manipulating an Access database from Java without ODBC How to find longest string in the table column data

Examples related to outlook

Does VBA contain a comment block syntax? "Sub or Function not defined" when trying to run a VBA script in Outlook Change HTML email body font type and size in VBA css padding is not working in outlook Image style height and width not taken in outlook mails Paste Excel range in Outlook MS Access VBA: Sending an email through Outlook HTML email in outlook table width issue - content is wider than the specified table width Save attachments to a folder and rename them Sending email from Command-line via outlook without having to click send