ปรุงก่อนชิม
Location :
นนทบุรี Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 4 คน [?]




New Comments
Group Blog
 
All Blogs
 
Friends' blogs
[Add ปรุงก่อนชิม's blog to your web]
Links
 

 
การสร้าง 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.

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 
 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.