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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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.

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F2F2F2"]
Method
[/td][td="bgcolor:#F2F2F2"]
Advantage
[/td][td="bgcolor:#F2F2F2"]
Disadvantage
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]Use as Hidden and qualify UDF names: Preface the function name with workbook name, e.g.,

=Personal.xls!MyFunc(...)[/td][td]Personal’s macros appear in the Macros dialog. No reference required.[/td][td]A lot of typing[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]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.[/td][td]Personal’s macros appear in the Macros dialog[/td][td]You 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.[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]Use as an Add-In: With Personal hidden, set the IsAddIn property to True and then save.[/td][td]No reference required[/td][td]Personal’s macros do not appear in the Macros dialog[/td][/tr]
[/table]


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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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