Code:
Sub saveworkbook()
Sheets("Details").Select
ActiveSheet.ExportAsFixedFormat Type:=xlsm, _
filename:="C:\Users\James\Documents\Excel Test Folder\Quotes Invoices Spread Sheets\_" & _
Worksheets("Details").Range("C6").Value & ".xlsm", _
OpenAfterPublish:=False
End Sub