Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Graham F
 
Posts: n/a
Default MenuBar & Event problems

Hi Group, My problem is I have a custom menubar which is written everytime
the workbook is open with the Workbook open event and deleted when the
workbook is closed with the workbook BeforeClose event. The problem is that
when I have more than one instance of the workbook open and then I close one,
the custom menu bar disappears and the default Excel one reappears, as per
the workbook close event. I am trying to find out if any event is triggered
on the workbook that remains open, so that I can call the menubar routine to
redraw the custom menubar. I have tried most, if not all without success,
please help. Many thanks Graham
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default MenuBar & Event problems

Use this two events in the Thisworkbook module.

Private Sub Workbook_Activate()

End Sub

Private Sub Workbook_Deactivate()

End Sub


Read more about events on Chip Pearson's site.
http://www.cpearson.com/excel/events.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Graham F" wrote in message ...
Hi Group, My problem is I have a custom menubar which is written everytime
the workbook is open with the Workbook open event and deleted when the
workbook is closed with the workbook BeforeClose event. The problem is that
when I have more than one instance of the workbook open and then I close one,
the custom menu bar disappears and the default Excel one reappears, as per
the workbook close event. I am trying to find out if any event is triggered
on the workbook that remains open, so that I can call the menubar routine to
redraw the custom menubar. I have tried most, if not all without success,
please help. Many thanks Graham



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
Disable SelectionChange Event BillCPA Excel Discussion (Misc queries) 2 February 17th 06 06:45 PM
Unable to Start Excel Event ID 2001 Melih Excel Discussion (Misc queries) 3 January 22nd 06 11:18 PM
Using excel to manage event - ANY input deeply appreciated! :-) ojbelboe Excel Discussion (Misc queries) 3 January 18th 06 10:21 PM
Dynamic charting problems (events) [email protected] Charts and Charting in Excel 4 January 27th 05 09:32 PM
Worksheet Row Change event crazybass2 Excel Discussion (Misc queries) 4 December 8th 04 05:29 PM


All times are GMT +1. The time now is 06:07 AM.

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"