No problem Bruce!
I know this isn't exactly what you were looking for, but this will get the job done:
Take a look at this first.
All you need do is to establish the "MailItem" variable as a public object, let's call it "oPubOutMail", and for simplicity's sake, another public String variable which we will call "strPubOFTFileLocation".
Change your previous code as follows:
Now create another command button labeled "Save Template" or the like that includes the following code:
(We use the numeral "2" instead of the keyword "olTemplate" because you are using Late Binding, though you could have placed a public enumeration in your code as Cytop showed you how to do on another one of your inquiries as well)
Open the template as you would normally do and make your edits.
Once done, run the above code along with any other actions you need like setting visibility of various buttons and the like; it will save the file to the intended location.
Just a note: the file will be saved, but remains open. It can be hidden by other open programs so you will want to close that out too. I will ask you if you wish to save it, but you don't, as it is meaning if you want to save it as a regular mail item.
It's great to be schizophrenic. I would give my other self a reputation star for this if I could.
Posted in case anyone else in the future is looking for a similar solution.
Bookmarks