A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Well,... if you will remove the first row of data on the CSV sheet
there is no point to copy the entire used range data from the active sheet
This line WS.UsedRange.Offset(1).Resize(WS.UsedRange.Rows.Count - 1).Copy
will leave out the first row of the data to be copied, before paste it to the newCSV sheet (.csv file)
So, the code
************************************************************************************************
Public Sub SaveWorksheetsAsCsv()
Dim WS As Worksheet
Dim newCSV As Workbook
Dim SaveToDirectory As String
' Store current details for the workbook
SaveToDirectory = "W:\public\DELMIAPartnerPortfolioReportGEO"
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each WS In ThisWorkbook.Worksheets
Set newCSV = Application.Workbooks.Add
WS.UsedRange.Offset(1).Resize(WS.UsedRange.Rows.Count - 1).Copy newCSV.Sheets(1).Range("A1")
newCSV.SaveAs Filename:=SaveToDirectory & WS.Name & ".csv", _
FileFormat:=xlCSVMSDOS, CreateBackup:=False
newCSV.Close
Next WS
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
**************************************************************************************************