View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed White Ed White is offline
external usenet poster
 
Posts: 34
Default How to delete QueryTable in VSTO?

How do I delete a QueryTable on an Excel spreadsheet using VB in VSTO?

In VBA, the following works, but I can't get anything to work in VB/VSTO.
ActiveSheet.Cells.Select
Selection.ListObject.QueryTable.Delete
--
Ed