Call it from another macro e.g. the following will extract from the current message.
Sub GetMsg() Dim olMsg As MailItem On Error Resume Next Set olMsg = ActiveExplorer.Selection.Item(1) saveAttachtoDisk olMsg lbl_Exit: Exit Sub End Sub
Call it from another macro e.g. the following will extract from the current message.
Sub GetMsg() Dim olMsg As MailItem On Error Resume Next Set olMsg = ActiveExplorer.Selection.Item(1) saveAttachtoDisk olMsg lbl_Exit: Exit Sub End Sub
Graham Mayor - MS MVP (Word) 2002-2019
Visit my web site for more programming tips and ready made processes
http://www.gmayor.com