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

Hi, I have created two files:
1. MacroLibrary.xlam
2. InvokeMacroFromLibrary.xlsm

MacroLibrary.xlam has a simple HelloWorld function.
InvokeMacroFromLibrary.xlsm has a simple Welcome function.


I want to be able to invoke HelloWorld function (present in
MacroLibrary.xlam) from InvokeMacroFromLibrary.xlsm and use the same.

Alternatively, I want to be able to use both the functions in a sequence one
after the other. Something like the following
Function/Sub Third_Function()
'Call HelloWorld()
'Call Welcome()
End Function/Sub

How can I do so?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Add-ins in Microsoft excel

In the Invoke workbook's VBA Project, set a reference to the XLAM VBA
Project. You should change the name of the XLAM project from the
default "VBAProject" to something more meaningful.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Tue, 7 Apr 2009 08:18:10 -0700, Keith Howard
wrote:

Hi, I have created two files:
1. MacroLibrary.xlam
2. InvokeMacroFromLibrary.xlsm

MacroLibrary.xlam has a simple HelloWorld function.
InvokeMacroFromLibrary.xlsm has a simple Welcome function.


I want to be able to invoke HelloWorld function (present in
MacroLibrary.xlam) from InvokeMacroFromLibrary.xlsm and use the same.

Alternatively, I want to be able to use both the functions in a sequence one
after the other. Something like the following
Function/Sub Third_Function()
'Call HelloWorld()
'Call Welcome()
End Function/Sub

How can I do so?

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
How can I covert Microsoft Word file into Microsoft Excel one? KatK Excel Discussion (Misc queries) 1 April 3rd 08 04:57 PM
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 JJ mac Setting up and Configuration of Excel 7 June 14th 07 06:54 PM
Relation Microsoft Access avec Microsoft Excel Mounir Excel Discussion (Misc queries) 2 August 23rd 06 10:43 AM
Change individual cell heights/widths in Microsoft Excel 2000 like Microsoft Word urbanplanner Excel Discussion (Misc queries) 3 December 7th 05 03:57 PM
Microsoft Excel Viewer 2003 won't open Microsoft Excel Worksheet Graham Jones Excel Discussion (Misc queries) 1 May 13th 05 12:58 AM


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