I have a workbook that imports data from a web page. I want to refresh the data every time the workbook is open and then execute code when the data is completely refreshed. I want to be sure the data is refreshed completely before the code runs. I know how to execute code on startup of a workbook but I cant get the code to wait until the refresh data is finished. I'd rather not use
Sub Wait5Sec()
Application.OnTime Now + TimeValue("00:00:05"
, "SayHello"
End Sub
Sub SayHello
Msgbox "Hello!"
End Sub
which I saw in another post because the data refresh takes a different amount of time every time. How can I wait until excel is ready for input before any more code is executed. Thanks
Sub Wait5Sec()
Application.OnTime Now + TimeValue("00:00:05"
End Sub
Sub SayHello
Msgbox "Hello!"
End Sub
which I saw in another post because the data refresh takes a different amount of time every time. How can I wait until excel is ready for input before any more code is executed. Thanks