hi
i need to add a few second pause to allow the refresh to finish it goes too fast and doesnt complete
how would i add in code?
i need to add a few second pause to allow the refresh to finish it goes too fast and doesnt complete
how would i add in code?
Rich (BB code):
Sub PQRefreshClients()
'Open/Refresh Clients
Application.AskToUpdateLinks = False
Workbooks.Open "M:\all\FI Payments\TABLES FOR FI REIMBURSEMENT\CLIENTS with tabs 2.xlsx"
ActiveWorkbook.RefreshAll
DoEvents
i want to add a 3 - 5 second pause here
Application.AskToUpdateLinks = True
Application.DisplayAlerts = True
Workbooks("CLIENTS with tabs 2.xlsx").Close SaveChanges:=True
End Sub