Hi George, thank you for taking the time to look at my issue.
- I couldn't access the connections properties menu when asking this question. The data could therefore not be re-imported. After a restart (i guess) the option to enter the proporties menu worked. Making it possible to re-import the data in a pivot table; not in a table. The connection, however, does not appear in Queries & Connections.
- Yes I can create a new connection. I could also do this before the restart.
- Yes, this is what I ment. :-) Thank you for the script.
-
Note: I found a work-around:
- In a different spreadsheet - create a table with the same name as the connection
- Create a connection to that table in the worksheet having the broken connection
- Two connections now exist in the "Existing Connections". They have same name, but one of them ends with a (1).
- The new connection is now present in the Queries & Connections.
- Delete the connection.
- Excel deletes both connections.
Case solved. :-)