Created
December 17, 2019 14:21
-
-
Save sdcampbell/ba788de362b98dade76d18acdaa2acdc to your computer and use it in GitHub Desktop.
Revisions
-
sdcampbell created this gist
Dec 17, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ Sub HTMLMessage() Dim objOutlookMsg As Outlook.MailItem Dim message, title, defaultValue As String Dim myValue As String ' prompt for user input. message = "Enter SMB Tag(s)" ' Set popup box title. title = "SMB Input Box" defaultValue = "<img src='file://IPADDRESS/image/signature.jpg'><img src='file:\\IPADDRESS\image\signature.jpg'>" ' Prompt input box myValue = InputBox(message, title, defaultValue) If myValue <> "" Then ' If a value is input for SMB tags Set objOutlookMsg = Outlook.Application.CreateItem(olMailItem) objOutlookMsg.HTMLBody = "<b>smb Image Tag below </b><br>" & myValue objOutlookMsg.Display End If End Sub