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

Thank-you Ron de Bruin for you help on the first question
and for and all of the other help you have given me and
others. It is truly appreciated.

Your last answer works great, but leads to a lot more.

1. When I turn off tools it is global or fixed in excel
until I turn it back on. Is there a way (without upon
open/close)for excel to revert back to the defult
settings upon close?

2. Is there a way to turn off the menu bar completly?

3. If I send this spread sheet to others with (Upon
open/close) is there any way that it would permenantly
change there settings?

Again, thanks a lot for you help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro Close 2

Hi

1)

You must run this code in a Event.
Use the following events in the thisworkbook module

Private Sub Workbook_Activate()

End Sub

Private Sub Workbook_Deactivate()

End Sub

Check out the following link
http://support.microsoft.com/default...&Product=xlw97
XL97: WE1183: "Customizing Menu Bars, Menus, and Menu Items"


2)
Application.CommandBars(1).Enabled = False


3)
If the use Disable macro's it will not hide the menu bar or Item


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ronbo" wrote in message ...
Thank-you Ron de Bruin for you help on the first question
and for and all of the other help you have given me and
others. It is truly appreciated.

Your last answer works great, but leads to a lot more.

1. When I turn off tools it is global or fixed in excel
until I turn it back on. Is there a way (without upon
open/close)for excel to revert back to the defult
settings upon close?

2. Is there a way to turn off the menu bar completly?

3. If I send this spread sheet to others with (Upon
open/close) is there any way that it would permenantly
change there settings?

Again, thanks a lot for you help.



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
Run Macro when close spreadsheet davemel Excel Discussion (Misc queries) 1 July 31st 06 02:03 PM
run macro on workbook close Nigel Excel Discussion (Misc queries) 3 November 29th 05 08:48 PM
Macro to close excel okanem Excel Discussion (Misc queries) 1 July 19th 05 10:01 AM
macro to close excel Pam C Excel Discussion (Misc queries) 1 May 5th 05 04:43 PM
Close Macro Ronbo Excel Programming 1 May 5th 04 08:33 PM


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