Quite new to VBA coding, I have the following data in a worksheet called "int_151_schedule", I am trying to take the data that is in the range A4:AK16 and create a new csv from this in the following directory: '\Desktop\Test'
My code is depicted below but I am getting the error ID 1004, indicating that it is not saving it to the path directory successfully. I have seen similar questions to this but haven't had much success. Is there anything wrong with my code?
Sub CreateNewCSV()
Sheets("int_151_schedule").Copy
Application.DisplayAlerts = False
With ActiveWorkbook
.SaveAs Filename:="\Desktop\Test " & Range("A4:AK16").Value & ".csv"
.Close savechanges:=True
End With
Application.DisplayAlerts = True
End Sub