I'm a VBA newbie and I need to create a "magic button" in Outlook that will take all emails found in one folder and save them individually to a folder in C:\emails as RTF files. It has to also save attachments, if any are found.
Since I'mnew, I'm kid of lsot on where I need to begin. Can someone show me the basic structure, objects, classes to use, maybe a sample program. Here's what I think I need to do:
1. Open the application
2. Create a mail session
3. Open the MAPI folder (so I can then access the emails)
4. Access the folder and select all items
5. count all the items in the folder so I know when to stop
6. Save all items one at a time using a For/Next until I reach the total number found on step 5.
Since I'mnew, I'm kid of lsot on where I need to begin. Can someone show me the basic structure, objects, classes to use, maybe a sample program. Here's what I think I need to do:
1. Open the application
2. Create a mail session
3. Open the MAPI folder (so I can then access the emails)
4. Access the folder and select all items
5. count all the items in the folder so I know when to stop
6. Save all items one at a time using a For/Next until I reach the total number found on step 5.