UDF not showing up

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
I'm adding UDF macros into Personal but they neither show up on worksheets when I start typing =nameoftheUDF nor in the QAT under macros. What's going on?
Thanks

**UPDATE*** looks like competing "Personal" files
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
By default, Personal opens as a hidden workbook rather than as an add-in. There are three ways to use UDFs in Personal, each with advantages and disadvantages.

A​
B​
C​
1​
Method
Advantage
Disadvantage
2​
Use as Hidden and qualify UDF names: Preface the function name with workbook name, e.g.,

=Personal.xls!MyFunc(...)
Personal’s macros appear in the Macros dialog. No reference required.A lot of typing
3​
Use as Hidden and set a reference: Name Personal’s VBA project something recognizable (like projPersonal) so you can find it in Tools > References, and then set a reference.Personal’s macros appear in the Macros dialogYou might be inclined to put the reference in your standard workbook template (Book.xlsx in XLSTART), but that can cause problems. Suppose the workbook actually doesn’t use any of Personal’s UDFs, but does have some code of its own. If you send the workbook to someone else, they’ll get a missing reference error, and be unable to use the code until it’s removed.
4​
Use as an Add-In: With Personal hidden, set the IsAddIn property to True and then save.No reference requiredPersonal’s macros do not appear in the Macros dialog

I find the last method to be most convenient, because I seldom use the macros in Personal, but use the UDFs every day.

Note that macros that require arguments will never appear in the Macros dialog.
 
Last edited:
Upvote 0
Note that macros that require arguments will never appear in the Macros dialog.

I should have said Subs.

My working definition of a macro is a Sub that doesn't take arguments. It's not precise, but it's a useful distinction.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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