Hi I am looking for a way to delete queries in a workbook.
I have code that creates a copy of sheets in the active workbook then putting them into a created workbook, but when creating that new workbook it brings over the queries too. Is there a way to not bring over the queries as well or delete the queries in that created workbook.
i use
thisworkbook.worksheets(sheet1).copy before:=ActiveWorkbook.Worksheets("Sheet1")
to create a sheet, i do this multiple times to do different sheets.
I have code that creates a copy of sheets in the active workbook then putting them into a created workbook, but when creating that new workbook it brings over the queries too. Is there a way to not bring over the queries as well or delete the queries in that created workbook.
i use
thisworkbook.worksheets(sheet1).copy before:=ActiveWorkbook.Worksheets("Sheet1")
to create a sheet, i do this multiple times to do different sheets.