Hi all,
I'm trying to use a stadard form called "Master Cleandeskform.xls", and I would like to save it in the same folder as the original document, under differend name.
Cell F3 contains the date, which is used to complete the file name.
Example: "Cleandeskform 17-02-2019.xls"
Everything is working fine, except the file is stored in the folder "My documents", which isn't the folder the original document is stored in.
This is te vba code I've used:
I'm trying to use a stadard form called "Master Cleandeskform.xls", and I would like to save it in the same folder as the original document, under differend name.
Cell F3 contains the date, which is used to complete the file name.
Example: "Cleandeskform 17-02-2019.xls"
Everything is working fine, except the file is stored in the folder "My documents", which isn't the folder the original document is stored in.
This is te vba code I've used:
Sub SaveThis****()
Dim FName As String
Dim FDate As String
FName = Cleandeskform "
FDate = Sheets("Sheet1").Range("F3").Text
ThisWorkbook.SaveAs filename:=Fname & FDate
End Sub