I have the following code to save a sheet in my current workbook to a new workbook.
Sub Sheet_SaveAs()
Dim wb As Workbook
Sheets("Audit Sheet").Copy
Set wb = ActiveWorkbook
With wb
.SaveAs Format(Date, "yymmdd") & "_REP_" & Range("M4") & "_" & Range("M3") & "_" & Range("AP3")
.Close False
End With
End Sub
This saves the new workbook in the default location of my documents but I want to specify the folder that it goes to.
I am new to VBA so any help will be much appreciated.
Sub Sheet_SaveAs()
Dim wb As Workbook
Sheets("Audit Sheet").Copy
Set wb = ActiveWorkbook
With wb
.SaveAs Format(Date, "yymmdd") & "_REP_" & Range("M4") & "_" & Range("M3") & "_" & Range("AP3")
.Close False
End With
End Sub
This saves the new workbook in the default location of my documents but I want to specify the folder that it goes to.
I am new to VBA so any help will be much appreciated.