#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Woorkbook toolbar

Hello,

I tried creating a custom toolbar for a workbook with a button to execute a
macro. It appeared to be working but now I notice that once the workbook is
used once the toolbar appears in Excel for all other workbooks? I only want
it attached to the selected workbook in question which I thought was the
point of doing the attach part of the toolbar creation. What am I missing?

Thank you,

QB
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Woorkbook toolbar

I did some reading/searching online and found info where I needed to create
an BeforeClose event that deletes the CommandBar before closing the workbook.

Is this the right approach? If it is attached to the workbook why should I
delete it everytime it it used? I figure I am missing something simple.

Thank you,

QB





"Question Boy" wrote:

Hello,

I tried creating a custom toolbar for a workbook with a button to execute a
macro. It appeared to be working but now I notice that once the workbook is
used once the toolbar appears in Excel for all other workbooks? I only want
it attached to the selected workbook in question which I thought was the
point of doing the attach part of the toolbar creation. What am I missing?

Thank you,

QB

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Woorkbook toolbar

That is how I do it. You create the toolbar on open and delete it on close.
Moreover you hide it when the user selects a different workbook and make it
visible when they return. It is not really that bad to do but you can't just
record a macro to do it. Check out this link on events programming...

http://www.cpearson.com/excel/Events.aspx
And this one on commandbars...
http://www.rondebruin.nl/menuid.htm
--
HTH...

Jim Thomlinson


"Question Boy" wrote:

I did some reading/searching online and found info where I needed to create
an BeforeClose event that deletes the CommandBar before closing the workbook.

Is this the right approach? If it is attached to the workbook why should I
delete it everytime it it used? I figure I am missing something simple.

Thank you,

QB





"Question Boy" wrote:

Hello,

I tried creating a custom toolbar for a workbook with a button to execute a
macro. It appeared to be working but now I notice that once the workbook is
used once the toolbar appears in Excel for all other workbooks? I only want
it attached to the selected workbook in question which I thought was the
point of doing the attach part of the toolbar creation. What am I missing?

Thank you,

QB

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
Protect single sheets in the woorkbook Aron Excel Worksheet Functions 10 February 5th 09 12:05 AM
TAB NAME IN A WOORKBOOK REFER TO A CELL ON WORKSHEET [email protected] Excel Discussion (Misc queries) 3 October 10th 08 08:37 PM
How do I create a backup woorkbook in Excel 2003. Sheskaty Excel Discussion (Misc queries) 10 January 31st 06 12:47 PM
Adjusting toolbar size, restore toolbar Josh M Excel Discussion (Misc queries) 1 January 18th 06 06:17 PM
woorkbook Exxalis Excel Worksheet Functions 1 August 19th 05 12:13 PM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"