Hi guys,
Sorry to be a real nag lately. But it's addictive once you find out that amateur code starts to do in secs what took you minutes or hours to do in the past...
So, I was able to device the following piece of code by scratching info all over the net:
It sure removes all connection on the current wb. However, now every time I open excel (fresh when there are no other WBooks open) it gives me an error saying that the connection the code just removed is not available.
In reality the code always remove only one connection at any given time, because it runs along other code that only adds 1 connection at that instance. The above code will remove it.
The connection being created by the code depends on a selection on a combobox (called cboRptname on my form).
Has anybody come across something similar?
Bookmarks