![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 17
|
I've got a couple of user-defined functions that I coded in via one workbook (wkb A), but would like these functions to be accessible to any workbook (wkb B...Z). How is this done so that when I start a new blank wkb I can use these user-defined functions there as well?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Save the file with the function with an xla extension. This will tell Excel that it's an add-in workbook. Then Select Tools > Add-Ins from the menu and browse to the xla file you saved. The function will now be available to all workbooks in Excel.
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 17
|
Thanks for the help, Ricky!
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
Yogi Anand |
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
You can also save the functions in personal.xls
__________________
Kind regards, Al Chara |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Al:
I have some UDFs saved in Personal Workbook but they work only in Worksheets of the Personal Workbook and not in Worksheets of other Workbooks (even though the UDF is declared as Public). Any ideas what else needs to be done? [ This Message was edited by: Yogi Anand on 2002-04-17 16:25 ] |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
=[Your Workbook.xls]MyFunct(Arg1, Arg2) should work. Bye, Jay |
|
|
|
|
|
|
#8 | ||
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
|
||
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Hi Yogi,
If the brackets don't work, try referencing the workbook with an exclamation point. I know it's something like this, but have never needed it, so I have no experience with the syntax. Bye, Jay |
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Jay:
It worked with the ! preceded by the name of the workbook.xls -- I did not need to enclose the name of the workbook in []s. THANKS! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|