andersen_yunan
New Member
- Joined
- Feb 7, 2018
- Messages
- 36
Hi All,
I'm currently trying to copy certain worksheet in my workbook and then save it as new excel file in download folder.
Sub RectangleRoundedCorners1_Click()
Dim FName As String
Dim FPath As String
FPath = "C:"
FName = "ResultsLessThan" & Format(Date, "ddmmyy") & ".xlsx"
Sheets("Less Than").Copy
ThisWorkbook.Sheets("Less Than").SaveAs Filename:=FPath & "" & FName
End Sub
I'm using this as the code but it does not excecute as per I wanted. Is there something I did wrong or is there any other option to do this?
Thanks in advance!
I'm currently trying to copy certain worksheet in my workbook and then save it as new excel file in download folder.
Sub RectangleRoundedCorners1_Click()
Dim FName As String
Dim FPath As String
FPath = "C:"
FName = "ResultsLessThan" & Format(Date, "ddmmyy") & ".xlsx"
Sheets("Less Than").Copy
ThisWorkbook.Sheets("Less Than").SaveAs Filename:=FPath & "" & FName
End Sub
I'm using this as the code but it does not excecute as per I wanted. Is there something I did wrong or is there any other option to do this?
Thanks in advance!