billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Good Evening Could someone assist. I am attempting to save a current sheet (Active sheet) into a new workbook and include in the Name the reference to Range B2 which is Start & C2, which is the user input date. Also would like to include B3, which is the End & C3 which is the user input end date. A bit perplexed here....Dim FilePath$, Filename$ActiveSheet.CopyFilePath = CreateObject("WScript.Shell").SpecialFolders("Desktop") & Application.PathSeparatorFilename = ActiveSheet.NameActiveWorkbook.SaveAs Filename:=FilePath & Filename & " " & Range("B2") & " " & Range("C2") & ".xlsx", FileFormat:=51
Last edited: