Solved: save sheet to desktop with name from cell
Hi all, how can i put together this 2 codes?
And how can i give a name to saved file based on content of cell C9?
I tried it, but it doesnt works.
I need save only active sheet to desktop (there is not specified concrete path, i want to use it to many computers) with name from content of cell C9 and actual date.
thx.
Code:
Sub SaveTOdesktop()
Rem With ActiveWorkbook
With ActiveWorkbook
.saveas CreateObject("WScript.Shell").SpecialFolders("DeskTop") & Application.PathSeparator & .Name
End With
End Sub
Sub SaveAndDate()
Worksheets("navrh").Copy
ActiveWorkbook.saveas Filename:= _
ThisWorkbook.Path & "/" & ActiveSheet.Name & " " & Format(Date, "dd mmm yyyy"), FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=True, _
CreateBackup:=False
End Sub