Discussion Locked

tracking .msg files in Outlook

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We are trying to automate the save as .msg files in Outlook to capture the path and filename it is saved to, to allow us to track the important save as files.
example: \\server\shared_folder\directory\filename.msg would be on the .msg file when printed.
??????

3 replies

by seagull data services

You could try something like this:

Dim strFilePath As String

'get or set your path here

Dim olMsg As Outlook.MailItem

'set the current item

olMsg.Body = olMsg.Body & vbCrLf & _
vbCrLf & "File Path: " & strFilePath
olMsg.SaveAs strFilePath

This discussion is closed to new replies.