adam087
Well-known Member
- Joined
- Jun 7, 2010
- Messages
- 1,356
Hi All
So I just discovered this little snippet at the following web site from John Walkenbach...
Spreadsheet Page Excel Tips
Although many of you may have seen it before, I felt obliged to share because it's previously been a real annoyance for me that I've not been able to provide ToolTip help to users for UDFs, and I wondered if this little extra bit in the 2010 version might help other people.
This will still not provide in-line IntelliSense like information when typing the UDF in to a worksheet, but it's deffo a step forward.
Below is an example of how I implemented it. I ran it once on a workbook before hiding the sub (changing to Private) and then saving as an AddIn. Worked a charm.
Hope that helps someone else out there!
/AJ
So I just discovered this little snippet at the following web site from John Walkenbach...
Spreadsheet Page Excel Tips
Although many of you may have seen it before, I felt obliged to share because it's previously been a real annoyance for me that I've not been able to provide ToolTip help to users for UDFs, and I wondered if this little extra bit in the 2010 version might help other people.
This will still not provide in-line IntelliSense like information when typing the UDF in to a worksheet, but it's deffo a step forward.
Below is an example of how I implemented it. I ran it once on a workbook before hiding the sub (changing to Private) and then saving as an AddIn. Worked a charm.
Code:
Public Sub DescribeFunction_SALULOOKUP()
Dim FuncName As String
Dim FuncDesc As String
Dim Category As String
Dim ArgDesc(1 To 5) As String
FuncName = "SALULOOKUP"
FuncDesc = "Merges pairs of names to joint salutations given a common key"
Category = 7 'Text category
ArgDesc(1) = "is a unique key upon which to group salutations"
ArgDesc(2) = "is the Range in which the names are to be found, where sGroupOn will be found in the left-most column"
ArgDesc(3) = "is the column number in rList which contains the Titles of the individuals"
ArgDesc(4) = "is the column number in rList which contains the Surnames of the individuals"
ArgDesc(5) = "is a symbol to use between the names or titles, default is '&'"
Application.MacroOptions _
Macro:=FuncName, _
Description:=FuncDesc, _
Category:=Category, _
ArgumentDescriptions:=ArgDesc
End Sub
Hope that helps someone else out there!
/AJ