PC Review


Reply
Thread Tools Rate Thread

disable the red "x" @ top right coner

 
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      15th Jul 2007
how (if posible) can i disable the red cross at the top right hand coner to
prevent ppl closing the workbook that way?

 
Reply With Quote
 
 
 
 
Vasant Nanavati
Guest
Posts: n/a
 
      15th Jul 2007
Are you talking about closing the workbook or closing the Excel application?
_________________________________________________________________________

"pswanie" <(E-Mail Removed)> wrote in message
news:4DAC757D-1FAA-4D64-B187-(E-Mail Removed)...
> how (if posible) can i disable the red cross at the top right hand coner
> to
> prevent ppl closing the workbook that way?
>



 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      15th Jul 2007
i want to prevent ppl closing the workbook with the "X"

i got a button with a macro that saves, print and quit the workbook.

thanx



"Vasant Nanavati" wrote:

> Are you talking about closing the workbook or closing the Excel application?
> _________________________________________________________________________
>
> "pswanie" <(E-Mail Removed)> wrote in message
> news:4DAC757D-1FAA-4D64-B187-(E-Mail Removed)...
> > how (if posible) can i disable the red cross at the top right hand coner
> > to
> > prevent ppl closing the workbook that way?
> >

>
>
>

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      15th Jul 2007
See
http://groups.google.ca/group/micros...d264901943f109

or use Google Group search for: red x disable group:*excel*
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"pswanie" <(E-Mail Removed)> wrote in message
news:4DAC757D-1FAA-4D64-B187-(E-Mail Removed)...
> how (if posible) can i disable the red cross at the top right hand coner
> to
> prevent ppl closing the workbook that way?
>



 
Reply With Quote
 
Vasant Nanavati
Guest
Posts: n/a
 
      15th Jul 2007
There are two Xs, one for the workbook window and one for the application
window.

In any event:

In the ThisWorkbook module:

Public fMacro As Boolean

Private Sub Workbook_BeforeClose()
If Not fMacro Then Cancel = True
End Sub

In your macro which closes the workbook:

'Your code except for the close
ThisWorkbook.fMacro = True
'Code to close
__________________________________________________________________________



"pswanie" <(E-Mail Removed)> wrote in message
news:A91493EC-E411-427A-8957-(E-Mail Removed)...
>i want to prevent ppl closing the workbook with the "X"
>
> i got a button with a macro that saves, print and quit the workbook.
>
> thanx
>
>
>
> "Vasant Nanavati" wrote:
>
>> Are you talking about closing the workbook or closing the Excel
>> application?
>> _________________________________________________________________________
>>
>> "pswanie" <(E-Mail Removed)> wrote in message
>> news:4DAC757D-1FAA-4D64-B187-(E-Mail Removed)...
>> > how (if posible) can i disable the red cross at the top right hand
>> > coner
>> > to
>> > prevent ppl closing the workbook that way?
>> >

>>
>>
>>



 
Reply With Quote
 
Vasant Nanavati
Guest
Posts: n/a
 
      15th Jul 2007
I don't know that I would mess with system menus except as a last resort,
unless I was constructing a dictator app.
_________________________________________________________________________
"Bernard Liengme" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> See
> http://groups.google.ca/group/micros...d264901943f109
>
> or use Google Group search for: red x disable group:*excel*
> --
> Bernard V Liengme
> www.stfx.ca/people/bliengme
> remove caps from email
>
> "pswanie" <(E-Mail Removed)> wrote in message
> news:4DAC757D-1FAA-4D64-B187-(E-Mail Removed)...
>> how (if posible) can i disable the red cross at the top right hand coner
>> to
>> prevent ppl closing the workbook that way?
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can one disable (or click "yes" through automate VB) when printing in MS Word and getting "The margins of section 1 are set outside the printable area of the page" Joe Microsoft VB .NET 0 14th Jun 2007 10:43 PM
how do I disable the "make all my pictures smaller" option when email by "send to" cherold@gmail.com Windows XP General 2 22nd Jun 2006 06:37 AM
"Enable" download setting mysteriously switched back to "Disable" =?Utf-8?B?a3B5?= Windows XP Internet Explorer 5 9th Dec 2005 02:40 PM
How to disable switching keyboardlayout by typing "LALT"+"LShift" =?Utf-8?B?Um9uYWxkIEdpZXR6?= Windows XP Help 5 5th Aug 2004 04:22 PM
How to restrict / disable "File", "Edit" and "View"-Menu?? =?Utf-8?B?bWFya3VzMzU0?= Windows XP Internet Explorer 2 4th Jun 2004 09:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:12 PM.