making a user-defined function accessible to all workbooks

dpolson

New Member
Joined
Apr 7, 2002
Messages
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?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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.
 
Upvote 0
On 2002-04-16 19:25, Ricky Morris wrote:
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.

Thanks from me too Ricky!

Yogi Anand
 
Upvote 0
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
 
Upvote 0
On 2002-04-17 16:24, Yogi Anand wrote:
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

You have to fully qualify the call, i.e. tell Excell where to find the function.

=[Your Workbook.xls]MyFunct(Arg1, Arg2)

should work.

Bye,
Jay
 
Upvote 0
On 2002-04-17 16:39, Jay Petrulis wrote:
On 2002-04-17 16:24, Yogi Anand wrote:
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

You have to fully qualify the call, i.e. tell Excell where to find the function.

=[Your Workbook.xls]MyFunct(Arg1, Arg2)

should work.

Bye,
Jay

Thanks Master Jay! That might be it ... I will try that.
 
Upvote 0
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
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top