Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Toolbar from workbook to workbook

I'm trying to do the exact same thing...if anyone has any suggestions,
I'd love to know the answer.
---------
Message sent via www.excelforums.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Toolbar from workbook to workbook

Ben and tedsec

"Is there a way to pass of control of the
macros to the next workbook? eg.. book2 book3 book4.... etc..."

For this very reason, I never attach toolbars to workbooks - especially
templates. I always create and delete the workbooks in code. I have become
partial to creating the commandbars in the Workbook_Activate event and
deleting them in the Workbook_Deactivate event. Other people use Open and
BeforeClose. I like the activate events because I can have two workbooks
based on the same template open and not have to worry about where the
toolbar macros are pointing. I know they're always pointing to the active
workbook.

See here http://www.dicks-blog.com/excel/2004..._commandb.html

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com


"tedsec - ExcelForums.com" wrote
in message ...
I'm trying to do the exact same thing...if anyone has any suggestions,
I'd love to know the answer.
---------
Message sent via www.excelforums.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Toolbar from workbook to workbook

also I can never
seem to get the workbook activate, deactivae events to work.. any

thoughts??


I don't know of any specific issue with those events. They work okay for
me. Make sure Application.EnableEvents is set to True.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com


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
Toolbar for a specific workbook Prixton Excel Worksheet Functions 1 February 24th 07 02:19 PM
Attaching a toolbar to a workbook Prixton Excel Discussion (Misc queries) 1 February 24th 07 01:44 PM
Toolbar for a specific workbook Prixton Excel Discussion (Misc queries) 8 February 23rd 07 04:44 PM
Toolbar on opening a workbook Tom Ogilvy Excel Programming 0 August 26th 04 03:00 PM
Workbook-specific toolbar possible? FMcC Excel Programming 1 May 19th 04 09:26 AM


All times are GMT +1. The time now is 12:03 PM.

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"