HOWTO: Insert Custom Function

Andris

New Member
Joined
Aug 24, 2002
Messages
5
Hi,

Simple but tricky question here: I made myself a nice custom function called ANDRIS :)how do I get it to be accepted by Excel so that I can type =ANDRIS(A1) in any cell, just as you can do with any other function ? If possible I would like it to be in the list with functions as well, together with its description etc.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Andris,

Place the workbook with the UDF in the XLStart-folder or if You will just use it for specific workbook set a reference via Tools | Reference in the VB-editor.

HTH,
Dennis
 
Upvote 0
If you plan to use the udf in only one workbook, just paste the function into a standard module (NOT into a worksheet module). The function will immediately become available in all worksheets. It will appear under "User Defined" in the function wizard, ie via the f(x) button.

If you want it to be usable in all workbooks, search this forum for threads on Add-ins for information on how to create an add in containing your own function(s).

To add descriptions to your udf and to list it in a given category of the function wizard, see:
http://www.ozgrid.com/VBA/DesciptionToUDF.htm
This message was edited by Swamp Thing on 2002-08-26 03:27
 
Upvote 0

Forum statistics

Threads
1,214,883
Messages
6,122,077
Members
449,064
Latest member
MattDRT

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