Results 1 to 12 of 12

Open close workbooks and Excel

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,974

    Open close workbooks and Excel

    I have a workbook for my users. When it closes, it closes the Excel application through the following code:
    Application.Quit
    ActiveWorkbook.Close False
    The reason I have Excel close is because I don't want to leave an empty Excel window behind. However, if I have other workbooks open, closing my workbook closes all of them as well. How can I have my workbook close Excel if it's the only WB open, but not close Excel if there are other WBs open?
    Last edited by jomili; 09-02-2011 at 04:07 PM.

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