I have 2 excel files. One file uses another for certain information that I use for configurating. I have a worksheet in the main file that has an external connection to the config file. I am using this piece of code to refresh to connection.
ActiveWorkbook.Connections("AOI Config Data FF1").Refresh
this works exactly like I want it to unless the config file is open. In other words, if somebody is changing the information in the config file at the same time VBA runs the refresh it tries to open the config file in the main file. I know this seems a bit convoluted. I setup the external connection as read-only. thanks in advance for the help.
Ernest
Be Alert, America needs more lerts
ActiveWorkbook.Connections("AOI Config Data FF1").Refresh
this works exactly like I want it to unless the config file is open. In other words, if somebody is changing the information in the config file at the same time VBA runs the refresh it tries to open the config file in the main file. I know this seems a bit convoluted. I setup the external connection as read-only. thanks in advance for the help.
Ernest
Be Alert, America needs more lerts