Created
July 13, 2017 05:59
-
-
Save iredun/9a378b8ab9d8f300ebbc7f439d201a27 to your computer and use it in GitHub Desktop.
Сохраняет все активные листы в разные файлы xls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub SaveSheets() | |
Dim s As Worksheet | |
Dim wb As Workbook | |
Set wb = ActiveWorkbook | |
For Each s In wb.Worksheets | |
s.Copy | |
ActiveWorkbook.SaveAs Filename:=wb.Path & "\" & s.Name, FileFormat:=xlExcel8 | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment