PDA

View Full Version : Floating Tool Bar


joe-k
05-17-2002, 02:47 PM
I created a floating toolbar with macros attached to it for a specific Excel spreadsheet. Whenever I run another spreadsheet, the floating toolbar appears. But the toolbar has no meaning to any but the original spreadsheet. Is there a way to make the floating toolbar appear only with the intended spreadsheet. It is easy enough to just close the toolbar, but there must be a more elegant solution.

Also if I close the toolbar in a workbook, it no longer appears in the intended spreadsheet and I have to VIEW=>TOOLBARS and select it. I tried to get around this by having a macro that would run when I open the workbook. This macro would bring up the toolbar.

You suggested Private Sub Workbook_Open() , which should run when the workbook is opened. I tried this and it does not work for me. I am using Excel-97. Is this a feature that is not available with Excel-97?
Or is there some other step that I am missing.

Thanks for your help.

RoverM
05-17-2002, 02:53 PM
Indeed you can post the code to create the toolbar in the Open event of the workbook you want it to appear in.
Excel 97 does have that event also.

If you give me your email addy (or send it to thedutchexpert@yahoo.com) then I can send you an example workbook.



D Mzzl!
RoverM

joe-k
05-17-2002, 03:11 PM
[Thanks Rover,

Your Open event reference gave me what I needed. I should have been using Sub Auto_Open() rather than Sub Workbook_Open(). I just tried Sub Auto_Open() and it does exactly what I need.

Thanks again,

Joe-K]
Indeed you can post the code to create the toolbar in the Open event of the workbook you want it to appear in.
Excel 97 does have that event also.

If you give me your email addy (or send it to thedutchexpert@yahoo.com) then I can send you an example workbook.



D Mzzl!
RoverM
[/quote]

Anne Troy
05-17-2002, 03:54 PM
Hey, Joe!

Glad to see you made it.

It may not be very busy in here, but as you can see, we ve got the people to answer your questions.

Thanks, RoverM!

~Dreamboat
TheWordExpert

RoverM
05-17-2002, 05:08 PM
Your both welcome !

btw: Joe, welcome to this excellent site!

D Mzzl!
RoverM