+ Reply to Thread
Results 1 to 3 of 3

close all workbooks in other folder

  1. #1
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    181

    close all workbooks in other folder

    I have several workbooks in a make your day folder categorized under several sub folders.

    Each workbook has a macro that calls the following macro:

    Please Login or Register  to view this content.
    I want the macro to close all workbooks opened in the make your day folder, but right now it will only close the workbooks found in the same subfolder.

    Example: Make your day/specials/music.xls will only close workbooks found in the specials folder, but I need it to close all open workbooks from the entire make your day folder.
    Last edited by dsrt16; 12-23-2009 at 11:46 AM.

  2. #2
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Akron, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    208

    re: close all workbooks in other folder

    I suspect that the workbook that is closing all the other workbooks is getting closed before the code has a chance to close all open workbooks. Try something like this:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    181

    Re: close all workbooks in other folder

    Wow that worked beautifully! 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