Maybe there are no subfolders? Try testing for oSourceFolder.Folders.Count.
Folders is definitely a collection object.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Sanjay" wrote in message
oups.com...
Hi ken
Thanks for reply. Now I have problem with this line not which u have
said.
For Each oFolder In colFolders
In this line it is giving error that "colFolders is not a collection
type". so what i have to use or which type i have to declare for that
solving error.