Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trouble calling Add-In Macros

I created an Excel Add-in with some macros in a module. I went to
Tools Add-Ins and selected the Add-In so it loads everytime I open
Excel. When I try to call one of the Add-In macros from a macro in my
main excel file, it doesn't work. My main excel macros can't see the
Add-In's macros. How do I get them to see the Add-In's macros.

--Scott

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Trouble calling Add-In Macros

Hi Scott,

Try:

Public Sub Tester()
Application.Run ("MyAddin.xla!MyMacro")
End Sub

Replace the addin and macro names to accord with your values.

---
Regards,
Norman



wrote in message
oups.com...
I created an Excel Add-in with some macros in a module. I went to
Tools Add-Ins and selected the Add-In so it loads everytime I open
Excel. When I try to call one of the Add-In macros from a macro in my
main excel file, it doesn't work. My main excel macros can't see the
Add-In's macros. How do I get them to see the Add-In's macros.

--Scott



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Trouble calling Add-In Macros

If the add-in name has embedded spaces use

Application.Run "'My Addin.xla'!MyMacro"


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Norman Jones" wrote in message
...
Hi Scott,

Try:

Public Sub Tester()
Application.Run ("MyAddin.xla!MyMacro")
End Sub

Replace the addin and macro names to accord with your values.

---
Regards,
Norman



wrote in message
oups.com...
I created an Excel Add-in with some macros in a module. I went to
Tools Add-Ins and selected the Add-In so it loads everytime I open
Excel. When I try to call one of the Add-In macros from a macro in my
main excel file, it doesn't work. My main excel macros can't see the
Add-In's macros. How do I get them to see the Add-In's macros.

--Scott





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
Trouble with Calling a workbook Rbp9ad[_2_] Excel Programming 5 October 8th 05 07:58 AM
Problems calling macros in addin from within macros Andibevan[_4_] Excel Programming 2 August 16th 05 09:29 AM
Trouble calling macro James W.[_2_] Excel Programming 1 May 5th 05 07:07 PM
Calling Macros From VB6 Diehard Excel Programming 3 August 2nd 04 04:42 PM
Calling macros from a VB app Minilek Excel Programming 2 July 13th 04 09:43 AM


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