alex0182828
Board Regular
- Joined
- Jun 20, 2012
- Messages
- 88
- Office Version
- 365
- Platform
- MacOS
Im using the below code on Excel mac but the files are created without any file extension can anyone help add .csv
Please also can i put the date in the file name like 280223 for the 28th feb 23 in front of the workbook name.
Thanks. ALex
Please also can i put the date in the file name like 280223 for the 28th feb 23 in front of the workbook name.
Thanks. ALex
Rich (BB code):
Sub asdf()
Dim ws As Worksheet, newWb As Workbook
Application.ScreenUpdating = False
For Each ws In Sheets(Array("EID Upload", "Wages with Locals Upload", "Wages without Local Upload"))
ws.Copy
Set newWb = ActiveWorkbook
With newWb
.SaveAs ws.Name, xlCSV
.Close (False)
End With
Next ws
Application.ScreenUpdating = True
End Sub