View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
DM Unseen DM Unseen is offline
external usenet poster
 
Posts: 233
Default remove query table when saving

VBA code:

Myworksheet.QueryTables("my_query").EnableRefresh = False

should do the trick

I would suggest creating a copy of the workbook first, else *you* wont
be able to refresh the table as well.

DM Unseen