Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open saved Outlook mail and reuse it as a mould

Status
Not open for further replies.

Mollethewizard

IS-IT--Management
Nov 18, 2002
93
0
0
SE
The code for recipients and attachments is finished but how to open a previously saved mail I can’t figure out. I’ve looked around and have not found anything useful.

Thanks beforehand

Christer
 
If I save a mail as a draft how can I reuse it thats what I ment.
 
I only have Outlook 2003 here but...
Why not save as "Outlook Template (*.oft)"
Then
File->New->Choose Form...
Look In: User Templates in File System
then pick the template you saved previously
 
quicker yet, if you save your "Outlook Template"
in an accessible location e.g., your Desktop,
then you can right click on the icon and choose New
 
Thanks for the advise - but I'am trying to figure out how to solve it using some VBA-code to open a previosly saved draft and then hang on code for recipient etc and send it. The code is in a Word-document.

Christer
 
what do you have so far?
where are you stuck?

Code:
Dim oa As Object
Dim mi As Object

Set oa = GetObject(, "Outlook.Application")
Set mi = oa.CreateItemFromTemplate("C:\Users\justin\Desktop\foobar.oft")
mi.To = "somebody@somewhere.com"
mi.Subject = Now() & " - " & mi.Subject
mi.Send
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top