Created
December 17, 2019 14:21
-
-
Save sdcampbell/ba788de362b98dade76d18acdaa2acdc to your computer and use it in GitHub Desktop.
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment