LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Eenie meenie minee......

I have three Workbooks and all need to be open at once.
The one required at any given time is selected
using "Window" in the Menu Bar.
Each Workbook has an associated and unique Custom Toolbar
brought up when the Workbook is first opened,
using "Auto_Open".
To close each WB there is a button on its associated
toolbar which operates a WB close module (macro).
There are two things I cannot fathom how to do.

1. When I select a different WB (ie one of the other
two via "Window") I need its associated unique toolbar to
be displayed and that of the parting WB removed.

2. When I close a given WB, using its unique
toolbar's close button, I need that toolbar to be removed
and replaced by the one associated with the (next) WB now
appearing.

I can achieve 1 above by putting suitable code in
ThisWorkbook, Workbook Activate.
However when I do 2 above I get an error message
"Application-defined or object-defined error"
I can't find a suitable event kicked off by the closure of
the "old" WB and the arrival of the "new"

Any help or suggestions would be greatly appreciated.
Don

 
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
When I search on my name "Meenie" I don't get 2010 posts Meenie Excel Worksheet Functions 7 May 5th 10 10:16 PM


All times are GMT +1. The time now is 08:27 AM.

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"