+ Reply to Thread
Results 1 to 7 of 7

Close GROUP in Excel 2007

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Close GROUP in Excel 2007

    If you have BUNCHES of workbooks open in Excel 2007, is there anyway to close the whole group, rather than having to click the "X" to close each one individually?

    Thanks in advance.
    Last edited by [email protected]; 09-09-2010 at 10:54 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,440

    Re: Close GROUP in Excel 2007

    Hi,

    Press ALT & F11 to open the VBA editor.

    In the immediate window, type
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Close GROUP in Excel 2007

    Tried it. Didn't work. Does it need to be a sub we can run such as

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Close GROUP in Excel 2007

    Are you sure you used the "Immediate window?" If the IW is not visible, just go to View>Immediate Window. It closes all workbooks but leaves Excel open.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: Close GROUP in Excel 2007

    If the 'x' you are talking about is the Application close button then hold the Shift key when closing.
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Close GROUP in Excel 2007

    You can add a 'Close All' button to the QAT.
    Remember what the dormouse said
    Feed your head

  7. #7
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Close GROUP in Excel 2007

    Duh. Hold the Shift button. Andy, I think I love you. (Of course, I'm not gay. Not that there's anything wrong with that.)

+ 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