Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Using Workbook_AddinInstall -vs- Workbook_Open Events

Bill,

I've been thinking about menus a lot lately, and I had one other thought
about your post...

I've taken it to heart that it's a good practice to make all custom toolbars
temporary, so that they're deleted when Excel closes. This seems like good
practice, in that if something goes wrong and a toolbar that was supposed to
be deleted is not, then at least it's gone when Excel is restarted. This
practice doesn't seem to be compatible with building the toolbars at
AddinInstall because you won't necessarily have your toolbar the next time
Excel opens. So maybe that's a reason to use Open, or Activate?

--
Doug


"Bill Schanks" wrote in message
ups.com...
When I create add-ins that have toolbars I always add the custom
toolbars at that time, and remove them in the Workbook_AddinUninstall
event.

I notice that most other addins (EssBase, MS Add-ins) don't do it this
way. The toolbars get added each time the add-in is loaded via the
Workbook_Open event.

Is there some type of common practice that should be used?

Is there some reason why you should choose one over the other? It seems
to me that by using the Workbook_open event it takes longer to load
Excel.



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
Workbook_Open - Multiple Events not all working Punsterr Excel Programming 2 October 6th 05 07:44 AM
Workbook_Open Jim Zeeb[_2_] Excel Programming 8 December 3rd 04 11:54 PM
workbook_open julio Excel Programming 4 September 26th 04 10:23 PM
Workbook_Open Eric Marple Excel Programming 3 May 10th 04 01:24 AM
Why Excel 2002 crashes on simplest Workbook_Open events? RADO[_3_] Excel Programming 1 November 8th 03 09:31 PM


All times are GMT +1. The time now is 09:37 PM.

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"