excelgolfer
New Member
- Joined
- Nov 27, 2018
- Messages
- 2
Hi,
This Macro code won't list all the Argument Descriptions, it only list the first description in the array "ArgDesc (1 to 2). How do i list all the strings in the array "ArgDesc" ?
thanks
This Macro code won't list all the Argument Descriptions, it only list the first description in the array "ArgDesc (1 to 2). How do i list all the strings in the array "ArgDesc" ?
thanks
Code:
Sub DescribeFunction()
'This can be used to add help text to each function
Dim FuncName As String
Dim FuncDesc As String
Dim Category As String
Dim ArgDesc(1 To 2) As String
'type the function name in the quotes below
FuncName = "OilHeat_DSN100G_LOF"
'type the help text in the quotes below
FuncDesc = "estimates the oil heat gain in (BTU/min) with oil restrictor plug installed, from input power (hp)and airend adiabatic efficiency (%)"
Category = 14 'User Defined
'type the argument descriptions in the quotes below. Add more arguments as needed, and change X in Dim ArgDesc(1 To X)
'to a number at least as large as total number of arguments
ArgDesc(1) = " = input power (hp)"
ArgDesc(2) = " = System adiabatic efficiency (%)"
Application.MacroOptions _
Macro:=FuncName, _
Description:=FuncDesc, _
Category:=Category, _
ArgumentDescriptions:=ArgDesc
'run the macro called DescribeFunction, then save
End Sub