My problem is very similar to this thread and this one. I think my issue is to combine these two questions.
I am running:
- OS: Windows 7 Enterprise Professional
- Outlook 2010
- VBA version 7.0
By reading these two questions as well as some other pages from Microsoft and elsewhere, I was able to open the VB editor and paste into it, this simple code:
Sub SaveEmail(msg As Outlook.MailItem)
' save as text
msg.SaveAs "C:\Users\mel\mailsave\email.txt" & Format(Now, "YYYYMMDDHHMMSS"), _
olTXT
End Sub
- Is the "format" portion of my msg.SaveAs line, going to save a unique text file for each email matching my rule?
- How do I run this macro to test and if successful, how do I run it repeatedly?
I tried going to the run menu and selecting run "sub/user form" item but the next dialog box is asking what to run and does not populate a list of macros available for running. Clicked on "save" icon but nothing changed.