View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
TheDuck[_3_] TheDuck[_3_] is offline
external usenet poster
 
Posts: 1
Default CommandBar code does NOT work if Excel is Already Open :(

Stacie,

You need to put some code in the ThisWorkbook object of you
spreadsheet that amends the toolbar.

The two events you need to look a

Workbook_Activate

and

Workbook_Deactivate

In _Activate you place some code (or a call to a sub) to amend th
toolbar as required. In _Deactivate you place code (or a call to
different sub) to return the toolbar to its default state.

Where have you placed the code that amends the toolbar currently?

TheDuc

--
Message posted from http://www.ExcelForum.com