Yes, you can ... you create a program in C # or vb.net that processes all your 600 documents and opens documents and using
oModule = oBook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule) oModule.CodeModule.AddFromString(sCode)
and depending on your setting in the sCode variable, you have a macro that cycles through Excel. Connections or
For Each wks In ActiveWorkbook.Worksheets For Each qt In wks.QueryTables With qt .Connection ="myconnstring" End With Next qt Next wks
source share