![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2004
Location: Mid-West
Posts: 180
OS: 2003/XP/Vista
|
The Easiest Excel Question Ever.
Excel Office 2003 SP2, v.11.8105
I got a complaint about a user having multiple spreadsheets open and then clicking on the program X to close the one sheet and it closes Excel and *all* the spreadsheets. Of course, there's a small black X to close the sheet just under the program X, but apparently, that's too hard. Anyone know of a setting anywhere or of a UI tweak that changes this so the red program x just closes the one spreadsheet? |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
Hi
There is an easy way that involves VBA code, but my question would then be - "How should the workbook be closed?" Do you have a button that could be used instead?
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Dec 2004
Location: Mid-West
Posts: 180
OS: 2003/XP/Vista
|
Quote:
Greetings - He just wants to close individual spreadsheets by using the program X instead of the little black X, which is located just underneath the program X. It is apparently easier to reprogram the computer then to reprogram the user. |
|
|
|
|
|
|
#4 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
LOL...
I asked my question because using code I can disable the closure of Excel and therefore any open workbooks. However, an alternative method of closure is therefore required otherwise you won't be able to close any workbook ever again! The most common way is to put a button on a sheet or other location that can initiate the close. So, before I provide your closure solution, I'd like to be sure that you are fully aware that you need to arrange a button or alternate means of allowing users to close each workbook they open. Does that make sense?
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Dec 2004
Location: Mid-West
Posts: 180
OS: 2003/XP/Vista
|
Certainly does.
So, I'm assuming that MS figured that closing Excel was just supposed to work fine this way and did not allow a user access to make this particular change themselves without editing code? And why is that I'm I not suprised? Functionality. Functionality. Functionality. |
|
|
|
|
|
#6 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
LOL!
OK - a quick demo. Open a new workbook and add this code to ThisWorkbook module: Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Cancel = True End Sub
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
![]() |
| Thread Tools | |
|
|