[Solved] Macro VBA Help in copying specific worksheets [closed]
[ad_1] All worksheets in a Workbook got an Index property. Index 1 means first sheet, index 2 second one, and so on. So the last sheet will have an Index equal to Sheets.Count. Knowing this, try replacing this part: For Each fnameCurFile In fnameList countFiles = countFiles + 1 Set wbkSrcBook = Workbooks.Open(Filename:=fnameCurFile) For Each … Read more