Try changing your cmdSave code to
EDIT: updated the code due to the SaveAs changing the sheet names in the
Dim csvFileName As String
Dim ws As Worksheet
Dim originalSheetName As String
Dim originalWBName As String
Application.DisplayAlerts = False
Application.ScreenUpdating = False
originalWBName = ThisWorkbook.FullName ' the export changed the name of the workbook - save it here
' loop through each sheet and export them as csv files
For Each ws In ThisWorkbook.Sheets
If ws.Name <> "SaveAsButton" Then
' export the ws if it isn't the one with the button
originalSheetName = ws.Name
csvFileName = ThisWorkbook.Path & "\" & ws.Name & VBA.Format(VBA.Now, " dd-MMM-yyyy hh-mm") & ".csv"
ws.SaveAs Filename:=csvFileName, FileFormat:=xlCSV, CreateBackup:=False
' using worksheet.SaveAs changes the sheet name to the file it was saved as
' put it back to the name it was beforehand
ws.Name = originalSheetName
End If
Next ws
ThisWorkbook.SaveAs originalWBName, xlOpenXMLWorkbookMacroEnabled ' and make sure the workbook stays the same name
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Bookmarks