Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Workbook.Quit

I am sure this is a real simple one, that I have not figured out. I want the
command "Workbook.Quit" that will then give the user the option to save the
workbook. Using Application.Quit is fine if only one workbook is open. But
if other workbooks are open it does not work for the one workbook.

Any help is appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Workbook.Quit

Hi Ronbo.

Try:

ActiveWorkbook.Close

If the workbook has changed, the user will be asked if changes are to be
saved.

---
Regards,
Norman



"Ronbo" wrote in message
...
I am sure this is a real simple one, that I have not figured out. I want
the
command "Workbook.Quit" that will then give the user the option to save
the
workbook. Using Application.Quit is fine if only one workbook is open.
But
if other workbooks are open it does not work for the one workbook.

Any help is appreciated.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Workbook.Quit



"Norman Jones" wrote:

Hi Ronbo.

Try:

ActiveWorkbook.Close

If the workbook has changed, the user will be asked if changes are to be
saved.

---
Regards,
Norman



"Ronbo" wrote in message
...
I am sure this is a real simple one, that I have not figured out. I want
the
command "Workbook.Quit" that will then give the user the option to save
the
workbook. Using Application.Quit is fine if only one workbook is open.
But
if other workbooks are open it does not work for the one workbook.

Any help is appreciated.

Thanks



Thank-you

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't quit excel maven Excel Discussion (Misc queries) 0 March 15th 07 12:31 AM
my password quit working in an excel workbook, help! Cheryl B Excel Worksheet Functions 0 April 26th 06 01:04 PM
Application.quit yuiriy Excel Programming 4 June 10th 04 08:36 AM
Excel doesn't quit Jos Vens Excel Programming 2 February 27th 04 01:08 AM
Excel won't quit Jeff[_23_] Excel Programming 0 October 24th 03 05:14 PM


All times are GMT +1. The time now is 03:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"