FUNwithOFFICE
New Member
- Joined
- Dec 22, 2011
- Messages
- 3
i've been trying to make a simple blinking animation of showing and subsequently hiding an image on a userform. i used
and it worked great but i really need less than one second delay.
then i tried using delay like so:
when i ran it step by step with F8 function it seemed to work just fine but when i actually ran it it smushed it all together so the result was something akin to:
what can i do to fix this?
(i'm operating excel 2007 with vista)
Code:
Application.Wait Now + TimeValue("00:00:01")
then i tried using delay like so:
Code:
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub blink()
Image1Glow.Visible = True
Sleep 500
Image2Glow.Visible = True
Sleep 500
Image3Glow.Visible = True
Sleep 500
Image4Glow.Visible = True
End Sub
when i ran it step by step with F8 function it seemed to work just fine but when i actually ran it it smushed it all together so the result was something akin to:
Code:
Sleep 500
Sleep 500
Sleep 500
Image1Glow.Visible = True
Image2Glow.Visible = True
Image3Glow.Visible = True
Image4Glow.Visible = True
(i'm operating excel 2007 with vista)