#1   Report Post  
Chad
 
Posts: n/a
Default Closing Excel

Is there a way to disable pressing the "x" at the top right corner of the
screen from closing an Excel document. Here's my dilema: I have created
workbooks that I allow beginner-level users to use to access data. In these
books, there are buttons that perform all of the actions, including saving
and closing the documents. However, I have trouble making the users press
the buttons instead of pressing close or"x" in Excel, closing the document
wherever they want and not leaving it appropriately for the next user. Is
there a way to temporarily disable them from closing Excel this way? Thanks
in advance.
-Chad
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Sounds like you could run your code on the Workbook_BeforeClose event in
addition to your button...
*******************
~Anne Troy

www.piersontech.com
www.mrexcel.com


"Chad" wrote in message
...
Is there a way to disable pressing the "x" at the top right corner of the
screen from closing an Excel document. Here's my dilema: I have created
workbooks that I allow beginner-level users to use to access data. In

these
books, there are buttons that perform all of the actions, including saving
and closing the documents. However, I have trouble making the users press
the buttons instead of pressing close or"x" in Excel, closing the document
wherever they want and not leaving it appropriately for the next user. Is
there a way to temporarily disable them from closing Excel this way?

Thanks
in advance.
-Chad



  #3   Report Post  
Chad
 
Posts: n/a
Default

I would prefer just to "disable the close" without using the button because
there could be one of many different sheets they close on when the user is
finished with the book. Thanks for the insight. Any other thoughts?

"Anne Troy" wrote:

Sounds like you could run your code on the Workbook_BeforeClose event in
addition to your button...
*******************
~Anne Troy

www.piersontech.com
www.mrexcel.com


"Chad" wrote in message
...
Is there a way to disable pressing the "x" at the top right corner of the
screen from closing an Excel document. Here's my dilema: I have created
workbooks that I allow beginner-level users to use to access data. In

these
books, there are buttons that perform all of the actions, including saving
and closing the documents. However, I have trouble making the users press
the buttons instead of pressing close or"x" in Excel, closing the document
wherever they want and not leaving it appropriately for the next user. Is
there a way to temporarily disable them from closing Excel this way?

Thanks
in advance.
-Chad




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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
I get a program error when I download an excel template Ladybug Excel Discussion (Misc queries) 3 March 4th 05 12:02 AM
html to excel nellie Excel Discussion (Misc queries) 4 February 8th 05 10:37 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Excel 2003 - long closing time when have many add-ins installed David Welch Excel Discussion (Misc queries) 0 January 11th 05 02:38 PM


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

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

About Us

"It's about Microsoft Excel"