|
楼主 |
发表于 2016-12-6 20:34
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
- Private Sub CommandButton1_Click()
- Set s = Me.Shapes.AddShape(msoShapeOval, 0, 98, 4, 4)
- s.Fill.ForeColor.SchemeColor = 31
- s.Line.Visible = msoFalse
- For i = 0 To 635 Step 5
- Me.Shapes.AddLine(0, 100, i + 10, 100).Line.ForeColor.SchemeColor = 31
- s.IncrementLeft 4.875 '4999
- Sleep 20
- If i Then Me.Lines(1).Delete
- DoEvents
- Next
- End Sub
复制代码 |
|