Question : VBA - Remove Data Connections and Macros From Workbook

I need to save a copy of a workbook with all data connections and macros removed via VBA so users opening the workbook don't get warnings from the trust center.  Any ideas?

Answer : VBA - Remove Data Connections and Macros From Workbook

I guess a loop like this:

for each wks in activeworkbook.worksheets
   For each objList in wks.listobjects
      Objlist.unlist
   Next objlist
next wks  
Random Solutions  
 
programming4us programming4us