Forum Discussion
OfficerKD6-37
Jan 01, 2024Copper Contributor
Custom excel formula, add helper pane visual basic editor to show order of inputs
When making a custom excel formula, how do you add a helper pane in the excel visual basic editor to show which variable to enter when you are using the excel function. See Below: I ...
- Jan 01, 2024
You can even create a description for the function and its arguments, by creating and running a macro:
Sub DescribeMyFunc() Application.MacroOptions _ Macro:="MyFunc", _ Description:="A custom VBA function", _ ArgumentDescriptions:=Array("A text string", "A whole number") End SubThe descriptions will be used in the Insert Function wizard:
HansVogelaar
Jan 01, 2024MVP
Let's say you create a UDF MyFunc in the Visual Basic Editor:
Function MyFunc(AName As String, ANumber As Long) As Variant
... ' your code goes here
End Function
In a cell, type =MyFunc
Press Ctrl+Shift+A.