+ Reply to Thread
Results 1 to 2 of 2

Check of anything in a folder is open

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-02-2005
    Posts
    146

    Check of anything in a folder is open

    I'm building a program that will rename folders. Obviously there is a chance of failure if any of the files in the folder are open when the program is run.

    Is there a clever way to check that a folder is able to be renamed (in the same way you can check if a folder exists)? At the very least I can use an "on error goto ..." error trap, but that seems kinda generic.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Check of anything in a folder is open

    Maybe you could use a code that closes all the open workbooks but the active workbook.
    Check this out

    http://support.microsoft.com/kb/147742

+ 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