PC Review


Reply
Thread Tools Rate Thread

Add-ins in Microsoft excel

 
 
Keith Howard
Guest
Posts: n/a
 
      7th Apr 2009
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 With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      7th Apr 2009
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
<(E-Mail Removed)> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Map is no longer supported with Microsoft Office Excel Lynda Microsoft Excel Programming 4 6th May 2008 03:10 PM
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 JJ mac Microsoft Excel Setup 7 14th Jun 2007 06:54 PM
Change individual cell heights/widths in Microsoft Excel 2000 like Microsoft Word urbanplanner Microsoft Excel Misc 3 7th Dec 2005 03:57 PM
Microsoft Excel Viewer 2003 won't open Microsoft Excel Worksheet =?Utf-8?B?R3JhaGFtIEpvbmVz?= Microsoft Excel Misc 1 13th May 2005 12:58 AM
comp.apps.spreadsheets,microsoft.public.excel,microsoft.public.excel.programming S. Microsoft Excel Discussion 1 5th Oct 2004 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:49 PM.