Here are a few lines of my code:
The combobox on line 2 is populated with data that is refreshed on line 1. Only problem is, line 2 doesn't wait to execute until line 1 is complete. So, my combobox is populated and I get a "Done!" message before my data is done refreshing.
Is there a way I can make the code pause and wait for the data to refresh before it continues?
Code:
ActiveWorkbook.RefreshAll
Call populateComboBox
MsgBox ("Done!")
The combobox on line 2 is populated with data that is refreshed on line 1. Only problem is, line 2 doesn't wait to execute until line 1 is complete. So, my combobox is populated and I get a "Done!" message before my data is done refreshing.
Is there a way I can make the code pause and wait for the data to refresh before it continues?