View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
karrde97 karrde97 is offline
external usenet poster
 
Posts: 1
Default Copy folder and paste to another folder


I am trying to do the same thing except my source directory changes wit
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 m
macro stops. I've tried all kinds of stuff and I can't get around th
error

--
karrde9
-----------------------------------------------------------------------
karrde97's Profile: http://www.excelforum.com/member.php...fo&userid=2546
View this thread: http://www.excelforum.com/showthread.php?threadid=38782