Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jb jb is offline
external usenet poster
 
Posts: 15
Default Can I attach a toolbar to an add-in?

I need to deploy my .xla file to all in my department.

I have created macros and a toolbar with buttons pointing
to the macros... and saved as "my macros.xls".

When I save the file as "my macros.xla", the toolbar which
was attached remains attached to the "my macros.xls"...
thus the .xla IS NOT SELF-CONTAINED.

It does not appear that I can open the .xla file in order
to attach the toolbar.

Thoughts?

Thanks for your help!

JB
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can I attach a toolbar to an add-in?

instead of attaching your toolbar, create it with code in your xla. At that
time you can assign your macros and they will point to the xla.


Here is an article about creating commandbars with code:
http://msdn.microsoft.com/library/techart/ofcmdbar.htm

I guess as an alternative, you could attach your toolbar and then have you
code go through and assign the correct macro to the onaction property of
each control. This would be done in the open event of the XLA so it occurs
when the XLA is loaded.

--
Regards,
Tom Ogilvy

"JB" wrote in message
...
I need to deploy my .xla file to all in my department.

I have created macros and a toolbar with buttons pointing
to the macros... and saved as "my macros.xls".

When I save the file as "my macros.xla", the toolbar which
was attached remains attached to the "my macros.xls"...
thus the .xla IS NOT SELF-CONTAINED.

It does not appear that I can open the .xla file in order
to attach the toolbar.

Thoughts?

Thanks for your help!

JB



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
Form Toolbar verses Control Toolbar ub Excel Discussion (Misc queries) 3 July 11th 08 10:57 PM
Adjusting toolbar size, restore toolbar Josh M Excel Discussion (Misc queries) 1 January 18th 06 06:17 PM
How can I attach a custom toolbar to only appear on one specific . ABuia Excel Worksheet Functions 1 January 18th 05 02:57 PM
attach custom toolbar to spreadsheet: how? Bart Plessers \(artabel\) Excel Programming 4 December 23rd 03 02:09 PM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM


All times are GMT +1. The time now is 06:44 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"