Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For the code below, if I leave the worksheet alone, the code runs
fine. If I activate a cell by selecting it, and leave it active, the code doesn't complete. How do I write a code which will complete the code regardless of what is happening on the sheet? thanks Private Sub CommandButton1_Click() For k = 1 To 10 Cells(k, 1) = k Start = Timer Do While Abs(Timer - Start) <= 1 'Waiting 1 sec DoEvents Loop Cells(k, 2) = k + 1 Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
When does DoEvents return? | Excel Programming | |||
DoEvents | Excel Programming | |||
VBA shell command - issues... | Excel Programming | |||
DoEvents?? | Excel Programming | |||
Doevents Application | Excel Programming |