Need to create a button in Outlook that will open a new message with a stationary preloaded.
Posted on 2003-10-24
I have already started off by using the Visual Basic Editor and creating a Macro. However I think I might have one of 2 problems. Or possibly 2 problems.
First when i try to run my code in Visual Basic Editor in Outlook it tells me that I do not have macros enabled. No i have already gone through and set the security down to the lowest level yet it still does not work.
Secondly I'm not quite sure that my code is executable. This is what I have:
Set myOlApp = CreateObject("Outlook.Application")
Set objMsg = myOlApp.CreateItem(olMailItem)
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile("c:\testfile.htm", 1, TristateFalse)
strText = ts.ReadAll
objMsg.HTMLBody = strText
I am trying to read an HTML message from an already existing HTML source on my hard drive! Please help!