Hi everyone,
I'm trying to write a function that uses the "Sleep" command, but when I call the function VB crashes (it stops responding)! My code looks like this:
Please help me anyone!Code:Option Explicit Declare Function Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Function Test() Dim a As Integer For a = 0 To 10 Sleep 1000 MsgBox "" Next a End Function