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

Hi All,

I am sure this is a really easy one but I can't work it out.

How do I call a macro that is stored in an add-in I created. I want to
assign it to a button on the toolbar but when I try to assign a macro to the
button the macro is not availble

Ta

Andi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Call Macro in Add-in

Just type in (for example)

MyAddin.xls!MyMacro

in the dialog. Change to reflect your addin name and the actual macro
name. (hey, some people take these things literally).

Make sure your addin in loaded.



--
Regards,
Tom Ogilvy


"Andibevan" wrote in message
...
Hi All,

I am sure this is a really easy one but I can't work it out.

How do I call a macro that is stored in an add-in I created. I want to
assign it to a button on the toolbar but when I try to assign a macro to

the
button the macro is not availble

Ta

Andi




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Call Macro in Add-in

Assume the Add-in is called MyAddin.xla and the macro is called MyMacro...
MyAddin.xla!MyMacro
should do it although I like to use...
Call MyAddin.xla!MyMacro
because it identifies it as a macro when I'm reviewing old code. Works
either way.
HTH,
--
Gary Brown



"Andibevan" wrote:

Hi All,

I am sure this is a really easy one but I can't work it out.

How do I call a macro that is stored in an add-in I created. I want to
assign it to a button on the toolbar but when I try to assign a macro to the
button the macro is not availble

Ta

Andi



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Call Macro in Add-in

Aha - I was missing the obvious that although the macro wasn't available to
select from the drop-down list, you can still load it by typing the name in.

Thanks Gary and Tom.

Andi


"Gary Brown" wrote in message
...
Assume the Add-in is called MyAddin.xla and the macro is called

MyMacro...
MyAddin.xla!MyMacro
should do it although I like to use...
Call MyAddin.xla!MyMacro
because it identifies it as a macro when I'm reviewing old code. Works
either way.
HTH,
--
Gary Brown



"Andibevan" wrote:

Hi All,

I am sure this is a really easy one but I can't work it out.

How do I call a macro that is stored in an add-in I created. I want to
assign it to a button on the toolbar but when I try to assign a macro to

the
button the macro is not availble

Ta

Andi





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
Call Macro jswalsh33 Excel Discussion (Misc queries) 2 February 21st 10 10:38 AM
How can run a macro ( call a macro) on selection of any filtercriteria? [email protected] Excel Worksheet Functions 7 February 20th 09 12:34 AM
Call an Access macro from an Excel macro Jason W Excel Discussion (Misc queries) 1 May 1st 08 08:33 PM
macro call Steve Excel Discussion (Misc queries) 12 August 25th 06 04:27 AM
Call another Macro Sandy Excel Programming 4 January 11th 05 04:06 PM


All times are GMT +1. The time now is 03:54 AM.

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"