custom function parameter assistance

jbesant

New Member
Joined
Jun 8, 2010
Messages
23
Hi there,

I built a custom function in vba.

When called from a cell in excel, I want the parameters to pop up to assist the user as they would for a built-in excel function.

Is there a way to do this?

Example of kind of function I'm talking about:
function test (hello as Integer) As variant
hello = hello *2
End Function

Thanks so much!
Jamie
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Function test (hello As Integer) As variant
test = hello *2
End Function

As far as the parameter hints, here's the best I could find, but deals mainly with the Insert Function dialog...
http://www.dailydoseofexcel.com/archives/2006/02/17/registering-a-user-defined-function-with-excel/

Although, the test function showed up in the Insert Function dialog for me, and it showed Hello as the first and only parameter, so I'm not sure why it's not showing up when I type in "=test(" in a cell, nothing hints me.

I'm guessing this is a pretty ugly fingers-in-Excel's-brain operation that may require an add-in to be loaded to do this to each computer with Excel you want to be affected.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,465
Members
453,725
Latest member
cvsdatreas

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