+ Reply to Thread
Results 1 to 5 of 5

Copy folder and paste to another folder

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2005
    Posts
    6

    Question

    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.

  2. #2
    Registered User
    Join Date
    07-21-2005
    Posts
    6

    Thumbs up

    Nevermind. Looks like I had some issues with my string not being formatted correctly. Works perfect now. Bob, your code help get me back on track. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1