Hello,
I'm not sure of the correct terminology for what I'm looking for.
I have this macro:
It works great for what I need it to do, but the sheet has a lot of formulas in it that I then have to copy and paste values over.
Is there a way for it to just copy the values of the active sheet to the new file?
I'm not sure of the correct terminology for what I'm looking for.
I have this macro:
VBA Code:
Sub SaveScheduleForm()
'Saves filename
Dim newFile As String, fName As String, fName2 As String
' Don't use "/" in date, invalid syntax
FPath = "H:\Schedules"
fName = Range("Sheet2!B1")
fName2 = Range("Sheet2!B3")
'Change the date format to whatever you'd like, but make sure it's in quotes
newFile = fName & " - " & fName2
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:=FPath & "\" & newFile
End Sub
It works great for what I need it to do, but the sheet has a lot of formulas in it that I then have to copy and paste values over.
Is there a way for it to just copy the values of the active sheet to the new file?