Dim S As Integer
Dim tmpcounter As Integer
Private Sub Form_Load()
Timer1.Interval = 1000 '定时间隔为1秒
S = 10 '一共执行10个Timer单位
tmpcounter = 0 '计数器
Call Timer1_Timer
End Sub
Private Sub Timer1_Timer()
If tmpcounter > S Then
End
Else
tmpcounter = tmpcounter + 1
End If
End Sub