- Код: Выделить всё
Dim CatalogWbook as Workbook
Dim Lst as Worksheet
Set CatalogWbook = Workbooks("test.xls")
For Each Lst In CatalogWbook.Worksheets
Set TmpBook = Lst.Move
TmpBook.SaveAs Filename:="upload" & Replace(ResultList.CodeName, "Лист", "") & ".txt", FileFormat:=xlText
Next