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

Hi,

Is there a peice of code that will remove or disable the close button
at the top of the excel window?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Remove Close button

Put this code in your wokbook's BeforeClose event, but you will need a condition or else you can't close it at all

Private Sub Workbook_BeforeClose(Cancel As Boolean
Cancel = Tru
End Su


----- Pete JM wrote: ----

Hi,

Is there a peice of code that will remove or disable the close butto
at the top of the excel window


--
Message posted from http://www.ExcelForum.com


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove Close button

Hi, Thanks that is good to know.

The problem is i have a macro assigned to a button that will restor
Excel amoungst other things, then it saves and closes the workbook. I
it possible to only allow this button to close the workbook.

Regards

Pet

--
Message posted from http://www.ExcelForum.com

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 shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM
remove close button Tom Ogilvy Excel Programming 0 August 19th 03 04:20 PM
remove close button Ron de Bruin Excel Programming 0 August 19th 03 04:12 PM
remove close button Dan E[_2_] Excel Programming 0 August 19th 03 04:10 PM


All times are GMT +1. The time now is 12:00 AM.

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"