函数:
函数名(参数或表达式)
Function 函数名(参数)
内容
End Function
举例:一个数的平方:
dim a
square(inputbox(" "))
msgbox a
Function square(n)
a=n*n