Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default disabling tool bar

Hi NathanG

See Dave's tip on Debra's site
http://www.contextures.com/xlToolbar02.html

You can also use this two events in the thisworkbook module if you only want to see the
toolbar when the workbook is active

Private Sub Workbook_Activate()
'name of your macro
End Sub

Private Sub Workbook_Deactivate()
'name of your macro
End Sub



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"NathanG" wrote in message ...
Hi,

As part of a system a new tool bar was created in excel to allow the user to
use the system. The process which takes place is that a user creates a new
spreadsheet from access based on the criteria selected. The tool bar appears
automatically. The problem is that when a new workbook is opened totally
unrelated to the system the tool bar still appears. I have played around with
VBA code a little to see if I could add a line that only adds the tool bar
for the active spreadsheet for not excel as a whole.

I have used onopen and onclose (or macros to that effect) before that remove
toolbars and when the user closes the spreadsheet all the tool bars etc are
added back in as normal. I don't recall the macros being shared with all
excel spreadsheets subsequently opened.

How can I ensure the custom tool bar only appears on the spreadsheets I want
it to?

Many thanks

Nathan

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
Disabling tool bars Mike Rogers Excel Discussion (Misc queries) 1 December 6th 05 05:11 PM
Disabling Macros Brian Matlack[_15_] Excel Programming 0 October 21st 05 01:21 PM
I am missing view tool bar from tool menu. excel New Users to Excel 1 July 4th 05 07:19 PM
Disabling Alt+F11 richard_b2004 Excel Programming 3 May 17th 04 06:32 PM
Disabling Commands Loomah Excel Programming 1 January 16th 04 12:52 PM


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