I have run the following program on vba excel 2010 32 bit computer :
Declare Sub sleep Lib "kernel32" (ByVal dwmilliseconds As Long)
Sub game()
i = 0
Do
i = i + 1 Cells(i, 1).Interior.Color = RGB(100, 0, 0) sleep 500
Loop Until i > 10
End Sub
But, after running, it shows me the following error :
"Can't find dll entry point sleep in kernel32"
Can somebody please tell me what I should do next to remove the error?
Thanks for the effort.