Hello friends, hope all is well!
can you please help me make the below code run faster?
Thank you very much in advance!
Sub DoWhileDemo()
Sheets("bmi").Range("B34").ClearContents
Range("A1").Select
Do Until Sheets("bmi").Range("C34").Value = True
Sheets("BMI").Range("B34").Value = Sheets("BMI").Range("B34").Value + 1 'Sheets("BMI").Range("F34").Value
DoEvents 'Wait for things to update
Application.Wait (Now() + CDate("00:00:01")) / 5000
Loop
Application.ScreenUpdating = False
Range("E34").Select
Selection.Copy
Range("B34").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.ScreenUpdating = True
End Sub
Bookmarks