Hi Guys
Please see below the code. I want to call commandbutton1,2,3 after every 10 seconds automatically but following code doesn't do that. Any help would be much appreciated.
Please see below the code. I want to call commandbutton1,2,3 after every 10 seconds automatically but following code doesn't do that. Any help would be much appreciated.
Code:
Private Sub UserForm_Initialize()
'Update the Barcodes printed today
Call CommandButton1_Click
'Update batches to be scanned / batches scanned today
Call CommandButton3_Click
'Update files batched and counted today
Call CommandButton2_Click
Application.OnTime Now + TimeValue("00:00:00"), "GoToSub"
End Sub
Sub GoToSub()
'Update the Barcodes printed today
Call CommandButton1_Click
'Update batches to be scanned / batches scanned today
Call CommandButton3_Click
'Update files batched and counted today
Call CommandButton2_Click
Application.OnTime Now + TimeValue("00:00:05"), "GoToSub"
End Sub