慕森王
Dim t As Long_________________________________________Public Function j(n As Integer) As Longt = 1For i = 1 To nt = t * iNext ij = tEnd Function_______________________________________Private Sub Command1_Click()Text1.Text = j(8) '这里就可以调用函数了End Sub