Outlook code doesn't work that way. (Perhaps you're more accustomed to
working with recorded Word macros?) In Outlook, the pseudo code would be
something like:
Get starting folder (Application.ActiveExplorer.CurrentFolder)
Get first subfolder (MAPIFolder.Folders)
Get the first item in the subfolder (MapiFolder.Items)
Copy the item to the another folder (Copy, Move)
Keep information from the item for later use (Body, To, Subject, etc.)
Repeat for all other items in the folder
Create a message with the information kept for later use
(Application.CreateItem)
Send the message (MailItem.Send)
Repeat for the other subfolders
You will need to learn the Outlook objects that allow you to perform these
tasks. I've listed the ones that are most relevant, and you can get sample
code for virtually all of them in Outlook VBA Help.
Also, your Outlook version will affect your options for sending a message.
If you want to learn Outlook VBA, these web pages should help you get
started:
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21522&pg=1
http://www.outlookcode.com/d/vb.htm
Once you've tried a couple of things,