+ Reply to Thread
Results 1 to 2 of 2

FileSystemObjec.FolderCopy causing excel to pend until folder is done copying

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    U.S.
    MS-Off Ver
    Excel 2007
    Posts
    14

    FileSystemObjec.FolderCopy causing excel to pend until folder is done copying

    So I have a File System Object (FSO) copying a folder on a server that literally takes a minute or 2 to finish copying.

    The issue is that Excel pends. The code literally stops in VBA on this line:

    FSO.CopyFolder("FolderLocation")

    and wont run any code passed it until the folder is completely finished. Is there a way to avoid this?

    Like when you manually copy/paste a folder, a pop up window comes showing the percentage till it's done; and you can do other stuff while it's copying.
    Is there a way to have excel tell windows to do it like that so it won't cause excel to stop?

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: FileSystemObjec.FolderCopy causing excel to pend until folder is done copying

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Retrieving Outlook folder using GetNamespace causing Runtime error
    By rrs711 in forum Outlook Formatting & Functions
    Replies: 15
    Last Post: 12-22-2020, 06:12 AM
  2. copying data from excel files in a source folder to target folder
    By Javed07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:27 PM
  3. Replies: 5
    Last Post: 10-08-2012, 10:15 AM
  4. Macro for copying specific data from excel files in a folder to a newly created excel file
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 02:24 PM
  5. Copying Folder Names into Excel Cells
    By StuartH in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2011, 10:49 AM
  6. Paste range pend on Sheet name in listbox
    By unley in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2010, 05:03 PM
  7. Copying different excel files in a folder to one excel file as sheets
    By saichandv in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-10-2009, 01:33 AM

Tags for this Thread

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