Skip to content

Instantly share code, notes, and snippets.

@iredun
Created July 13, 2017 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iredun/9a378b8ab9d8f300ebbc7f439d201a27 to your computer and use it in GitHub Desktop.
Save iredun/9a378b8ab9d8f300ebbc7f439d201a27 to your computer and use it in GitHub Desktop.
Сохраняет все активные листы в разные файлы xls
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