I checked and the oAAAArchive variable contains a value of 'AAA Archive' which is the correct name for the newly created archive folder which gets created sucessfully.
I errors on the following line:
oOtherFolder.CopyTo (oAAAArchive)
The oOtherFolder variable has a value of 'Test Level 1' which is a test folder that should be included in the copy process.
perkc
Main Topics
Browse All Topics





by: BlueDevilFanPosted on 2005-02-21 at 15:23:46ID: 13367557
Hi perkc,
It looks like you're doing this from VB. If so, then I'd set a BreakPoint on this line
Set oAAAArchive = oMapi.Folders.Item("AAA Archive")
and step through it to see if oAAAArchive is being created properly. If so, then continue stepping through the code to see where it's being wiped out at. I suspect oAAAArchive is not being created. If it's not, then work your way backward and see where the problem is.
Cheers!