tbakbradley
Board Regular
- Joined
- Sep 24, 2010
- Messages
- 142
I have a need for a user to click a button that will run a Macro that opens an outlook .msg file saved to a specific location. It's an email template. Just needs to open that .msg file in outlook that already has the To Address and Subject and partial body they can alter.
I have code elsewhere in the spreadsheet that opens a Word Document saved to a specific location, but my searching to do the same for a .msg appears very complex and don't see why it can be simple like with Word, plus I can't follow some of the other examples I've seen.
Here is what I have to open a Word document stored somewhere.
Can something similar be done to open a .msg file saved to the same Server location?
I have code elsewhere in the spreadsheet that opens a Word Document saved to a specific location, but my searching to do the same for a .msg appears very complex and don't see why it can be simple like with Word, plus I can't follow some of the other examples I've seen.
Here is what I have to open a Word document stored somewhere.
Code:
Sub OpenWordDocument()
Set wordapp = CreateObject("word.Application")
wordapp.documents.Open "[URL="file://\\ServerLocation\Folders\WordFile"]\\ServerLocation\Folders\WordFile[/URL].docx"
wordapp.Visible = True
End Sub
Can something similar be done to open a .msg file saved to the same Server location?