Re: Copy folder and paste to another folder
- From: karrde97 <karrde97.1sitep_1121951259.5441@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 07:48:00 -0500
I am trying to do the same thing except my source directory changes with
each operation.
my_path2 = (source directory)
my_save2 = (target directory)
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.copyfolder(my_path2, my_save2, True)
The directory gets copied except I get a Type mismatch error and my
macro stops. I've tried all kinds of stuff and I can't get around the
error.
--
karrde97
------------------------------------------------------------------------
karrde97's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=25461
View this thread: http://www.excelforum.com/showthread.php?threadid=387823
.
- Follow-Ups:
- Re: Copy folder and paste to another folder
- From: karrde97
- Re: Copy folder and paste to another folder
- References:
- Copy folder and paste to another folder
- From: ddiicc
- Re: Copy folder and paste to another folder
- From: Bob Phillips
- Re: Copy folder and paste to another folder
- From: ddiicc
- Copy folder and paste to another folder
- Prev by Date: Re: Basic Code Problem
- Next by Date: Re: only display positive values
- Previous by thread: Re: Copy folder and paste to another folder
- Next by thread: Re: Copy folder and paste to another folder
- Index(es):
Relevant Pages
|