ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro Close 2 (https://www.excelbanter.com/excel-programming/297381-macro-close-2-a.html)

ronbo

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.

Ron de Bruin

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.





All times are GMT +1. The time now is 04:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com