OptionExplicitOptionCONSOLEOFFSubMainDIMXlbAsComObject,XlsASComObject,xlappASComObjectxlapp.CreateObject("Excel.Application")xlapp.Visible=TRUEXlb=xlapp.Workbooks.AddforeachXlsinXlb.WorkSheetsmsgboxXls.NamenextforeachXls2ascomobjectinXlb.WorkSheetsmsgboxXls2.Namenextxlapp.DisplayAlerts=FALSEmsgbox"click to continue..."xlapp.quitEndSub
If you would like to refer to this comment somewhere else in this project, copy and paste the following link: