Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Sub ExportToCSVs()
  2. Dim ws As Worksheet
  3. Dim nm As String
  4. Application.ScreenUpdating = False
  5. For Each ws In Worksheets
  6. ws.Select
  7. nm = ws.Name
  8. ActiveSheet.SaveAs Filename:="C:\put\folder\path\here\" & nm & ".csv", _
  9. FileFormat:=xlCSV, CreateBackup:=False
  10. Next ws
  11. Sheets("Sheet1").Activate
  12. ActiveSheet.Range("A1").Select
  13. Application.ScreenUpdating = True
  14. MsgBox "Sent"
  15. End Sub
Add Comment
Please, Sign In to add comment