Here is my need
After the variables screen has been filled and the control has returned to BEx/VBA module, I want to process data into a new sheet and save only the new sheet as xls (or xlsm) file. Note: The file will also contain macros so I can't save it as .xlsx file.
The way I did that is by deleting all sheets that contain BEx queries and then save the remaining to a local xls file. Then I close the BEx window
The problem is when I re-open the xls file from Explorer using double-click: BEx icons are still active and VB editor shows that BExAnalyzer.xla is allocated. How do I remove them before saving the file with VBA ?