
For instance, you can’t adjust the picture size or move the picture, etc. But its only drawback is that it cannot allow you to adjust the inserted picture as per your needs. Outlook signature editor permits you to create and design your signatures at will. So as to make your emails more personalized, you can insert your own signature. So this article will share you 3 ways to make the picture well-aligned with the text in signature. But you cannot edit the inserted picture in the Signature Editor. htm FilesįilenameWithoutExtn = Left(filename, (InStrRev(filename, ".To make your Outlook signature more attractive, you may tend to insert a picture. '~~> Function to fix image paths in Signature. Set oOutApp = CreateObject("Outlook.Application") '~~> Use the function to fix image paths in the htm file Ret = Application.GetOpenFilename("Html Files (*.htm), *.htm") Sub Sample()ĭim oOutApp As Object, oOutMail As Objectĭim strbody As String, FixedHtmlBody As String Let me know if you still have any issues. '~~> Replace incomplete path with full PathįixHtmlBody = Replace(MyData, foldername, FullPath) '~~> Get the foldername where the images are storedįoldername = FilenameWithoutExtn & "_files"įullPath = Left(r, InStrRev(r, "\")) & foldername '~~> Read the html file as text file in a string variableįilenameWithoutExtn = Left(filename, (InStrRev(filename, ".", -1, vbTextCompare) - 1)) htm Filesįunction FixHtmlBody(r As Variant) As Stringĭim FullPath As String, filename As String Here is a quick function that I wrote which will fix the paths in the html body '~~> Function to fix image paths in Signature. The problem is that we cannot directly use the html body of this file because the images are stored in a different folder named as filename_files as shown below.Īlso the paths mentioned in the htmlbody are incomplete.

Htm file from AppData\Roaming\Microsoft\Signatures In this code we will let the user select the.

People may also have many signatures but my goal is to capture their default signature.Įrror signature picture after running the code This file is to be distributed to many people. '\\ This doesnt store images because its defined as string Set outlookApp = CreateObject("Outlook.Application") This code is written in Excel VBA and the goal is to copy paste the range as a picture in Outlook email. Images here refer to company logo and social networking icons.
