Private Sub Command1_Click()
Dim Li_i As Long,lNum as Long
lNum = 0
For Li_i = 1 To Clng(Text1.Text)
If Li_i MOD 17 = 0 Then
lNum = lNum + jiecheng(Li_i)
End If
Next
End Sub
Private Function jiecheng(Byval Num as Long) As Long
jiecheng =1
Dim Li_i As Long
For Li_i =1 To Num
jiecheng=jiecheng * Li_i
Next
End Function