I have the following vba code that runs every 5 minutes
Would it be possible to pause it for 20seconds after the line
.Range("BO2:CC2").Value = Application.Transpose(.Range("O5:O19").Value)
And that excel would not be frozen?
Thanks
Would it be possible to pause it for 20seconds after the line
.Range("BO2:CC2").Value = Application.Transpose(.Range("O5:O19").Value)
And that excel would not be frozen?
Thanks
VBA Code:
Sub test()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
With Sheet1
.Range("BO2:CC2").Value = Application.Transpose(.Range("O5:O19").Value)
End With
With Sheet2
.Range("BO2:CC2").Value = Application.Transpose(.Range("O5:O19").Value)
End With
With Sheet3
.Range("BO2:CC2").Value = Application.Transpose(.Range("O5:O19").Value)
With Sheet1
.Range("BO8:CC8").Value = Application.Transpose(.Range("O5:O19").Value)
End With
With Sheet2
.Range("BO8:CC8").Value = Application.Transpose(.Range("O5:O19").Value)
End With
With Sheet3
.Range("BO8:CC8").Value = Application.Transpose(.Range("O5:O19").Value)
Application.OnTime Now + TimeValue("00:05:00"), "test"
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub