Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Custom Button - Excel Add-in

Greetings,

I am pretty new to this. I have created an add-in for Excel 2003, however I
need to assign a custom button to it. However, the macro doesn't show up in
the "Assign Macro" list when I try to assign it.

If it's just a macro I put in the Excel Directory (C:\Program
Files\Microsoft Office\OFFICE11\XLSTART) the macro shows up... but, that's
not what I need.

Thanks for your help in advance,
mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Button - Excel Add-in


Hello Mike,

Add-Ins don't expose their macros by design. Here's another thought.
Maybe your code should be in a VBA project module. You can copy the
module into any workbook you use later on. The macros in the module
will show up in the Assign Macro list.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=494225

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Custom Button - Excel Add-in

so, then... what's the advantage of using an add-in? i want this macro to be
used company-wide, sent out to maybe 20 people. if they have to add an
additional file to a directory, it's sort of a bother.

thanks though, you have certainly answered my question. i guess it's just
not possible :-)

thanks,
mark

"Leith Ross" wrote:


Hello Mike,

Add-Ins don't expose their macros by design. Here's another thought.
Maybe your code should be in a VBA project module. You can copy the
module into any workbook you use later on. The macros in the module
will show up in the Assign Macro list.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=494225


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Custom Button - Excel Add-in

Addins are great in that they can be distributed as you say. In order to
assign a button you will have to do some work to create a toolbar and then
put your buttons on there. Or you could piggy back on one of the existing
toolbars or the menu bar. In the Thisworkbook module of the addin there is an
addin install and unistall event. When the event is fired you dynamically
create the buttons and/or toolbar and off you go... This is not a project for
the faint of heart but it is very do-able.
--
HTH...

Jim Thomlinson


"mvyvoda" wrote:

so, then... what's the advantage of using an add-in? i want this macro to be
used company-wide, sent out to maybe 20 people. if they have to add an
additional file to a directory, it's sort of a bother.

thanks though, you have certainly answered my question. i guess it's just
not possible :-)

thanks,
mark

"Leith Ross" wrote:


Hello Mike,

Add-Ins don't expose their macros by design. Here's another thought.
Maybe your code should be in a VBA project module. You can copy the
module into any workbook you use later on. The macros in the module
will show up in the Assign Macro list.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=494225


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Custom Button - Excel Add-in

so, it is possible to add a custom button to the end users sheet that would
execute the add-in macro? can you point me to a some good reference material
that may achieve this?

thanks so much Jim...,
mark

"Jim Thomlinson" wrote:

Addins are great in that they can be distributed as you say. In order to
assign a button you will have to do some work to create a toolbar and then
put your buttons on there. Or you could piggy back on one of the existing
toolbars or the menu bar. In the Thisworkbook module of the addin there is an
addin install and unistall event. When the event is fired you dynamically
create the buttons and/or toolbar and off you go... This is not a project for
the faint of heart but it is very do-able.
--
HTH...

Jim Thomlinson


"mvyvoda" wrote:

so, then... what's the advantage of using an add-in? i want this macro to be
used company-wide, sent out to maybe 20 people. if they have to add an
additional file to a directory, it's sort of a bother.

thanks though, you have certainly answered my question. i guess it's just
not possible :-)

thanks,
mark

"Leith Ross" wrote:


Hello Mike,

Add-Ins don't expose their macros by design. Here's another thought.
Maybe your code should be in a VBA project module. You can copy the
module into any workbook you use later on. The macros in the module
will show up in the Assign Macro list.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=494225




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
Custom button starts new instance of Excel EllenR Excel Programming 12 June 20th 08 08:03 PM
2003 - 2007 custom macro and custom button restore. Scott Sornberger Excel Discussion (Misc queries) 11 May 23rd 08 02:41 PM
distributing an Excel custom button [email protected] Excel Discussion (Misc queries) 2 March 28th 07 02:12 PM
Can I make a custom button in Excel for the Group feature? Lisa Excel Worksheet Functions 1 December 20th 04 09:34 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


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