How do I remove data connections with VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to remove data connections from my excel worksheet using visual basic
for applications. There are a great many data connections.
 
Try this

For Each QTable In ActiveSheet.QueryTables
QTable.Delete
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top