Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default disable the red "x" @ top right coner

how (if posible) can i disable the red cross at the top right hand coner to
prevent ppl closing the workbook that way?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default disable the red "x" @ top right coner

Are you talking about closing the workbook or closing the Excel application?
__________________________________________________ _______________________

"pswanie" wrote in message
...
how (if posible) can i disable the red cross at the top right hand coner
to
prevent ppl closing the workbook that way?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default disable the red "x" @ top right coner

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" wrote in message
...
how (if posible) can i disable the red cross at the top right hand coner
to
prevent ppl closing the workbook that way?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default disable the red "x" @ top right coner

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" wrote in message
...
how (if posible) can i disable the red cross at the top right hand coner
to
prevent ppl closing the workbook that way?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default disable the red "x" @ top right coner

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" wrote in message
...
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" wrote in message
...
how (if posible) can i disable the red cross at the top right hand
coner
to
prevent ppl closing the workbook that way?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default disable the red "x" @ top right coner

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" wrote in message
...
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" wrote in message
...
how (if posible) can i disable the red cross at the top right hand coner
to
prevent ppl closing the workbook that way?





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
Disable autoformat of "true" and "false" text drs207 Excel Discussion (Misc queries) 6 April 14th 23 05:33 PM
how can I disable "cutting cells" and "drag and drop "in excel ? mwoody Excel Worksheet Functions 4 August 25th 08 03:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Disable "Save" &/or "Close" universal[_4_] Excel Programming 3 October 25th 03 12:38 PM


All times are GMT +1. The time now is 06:48 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"