MK15
asked on
Outlook template - VBA - find string in message
Hi,
How would i search for string in a outlook message? i'm trying to search for "*name".
Thanks
How would i search for string in a outlook message? i'm trying to search for "*name".
Sub temp()
Dim path As String
path = "C:\Users\username\AppData\Roaming\Microsoft\Templates\temp.oft"
Set msg = Application.CreateItemFromTemplate(path)
msg.Display
End Sub
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks - that worked - how would i go about replacing the string if it was found?
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
pls try
if msg.Body like "*name*" then
Regards