Ok, well there does seem to be something weird going on here. Look at this:
http://www.codeguru.com/forum/showthread.php?t=443782You might also try:
oAPP.Namespace((FileNameFo
lder)).Cop
yHere oAPP.Namespace((Fname)).It
ems
Other than this, the question comes down to "which object is not created?" There are two candidates for this: either oAPP is not set, which I would say is unlikely, or the Namespace(FileNameFolder) object is not set. You can find out which using the IDE at the point the code stops.
I would urge you to look *very* closely at those file paths - are you sure they're exactly the same? A digit out of order? An underscore where it shouldn't be?
Copy the zip file path from your code, i.e.
G:\Shared\High Yield\Chris\Daily Performance\Daily JPM Prices\Valuation Summary_20100823.zip
and paste it into the address bar of explorer - it should open the zip file if the path is correct.
If none of these work I would try fiddling around with variations based on the link at the start of this email. *Try defining your filepaths as Strings instead of Variants (you should probably do this anyway), and then try the variations on the link, etc.
*Try abandoning the variables completely and just pass the hardcoded paths to Namespace().
*Try specifying the paths using UNC instead of drive mapping (i.e. \\<server>\<share>\Shared\High
Yield\Chris\Daily Performance... etc.)
If the problem is indeed to do with the Namespace object, you may have to get creative to solve it.