Vil gerne gemme aktiv fane i samme folder, men der er noget galt i koden
Hvad kan der være galt her.?
Sub Save_Worksheet_as_New_File_in_Current_Folder()
'Gets the name of the currently visible worksheet
Filename = Onboard.xlsx
'Copys the visible worksheet to a new workbook
Onboard.xlsx.ActiveSheet.Copy
'Saves the new Excel file
Onboard.xlsx.SaveAs Transport_instruktion.xlsx
'Closes the newly created workbook so you are still looking at the original workbook
Onboard.xlsx.Close
End Sub