การสร้าง Help ให้กับ function ที่สร้างเอง
ตัวอย่าง ฟังก์ชั่นที่สร้าง คือ function_plus Option Explicit
Function function_plus(ByRef A As Integer, ByRef B As Integer) As Integer function_plus = A + B End Function '---------------------------------------------------------------------------------------- 'RUN this sub for register ' Sub RegisterUDF() Dim des As String des = "This function is used for test tools tip help " & vbLf _ & "function_plus =A + B | A is number,B is number)"
Application.MacroOptions Macro:="function_plus", Description:=des, Category:=9 End Sub '------------------------------------------------------------------------------------------ 'RUN this sub for Unregister ' Sub UnregisterUDF() Application.MacroOptions Macro:="function_plus", Description:=Empty, Category:=Empty End Sub
Create Date : 12 พฤศจิกายน 2555 |
Last Update : 12 พฤศจิกายน 2555 14:29:40 น. |
|
0 comments
|
Counter : 1275 Pageviews. |
|
|