I am trying to create a new sheet with a custom name for that sheet that takes in an input. For instance, I enter a date (June 1, 2020) into "sheet1" and the output is a new sheet title "June 1, 2020.
My current code:
Dim sheetName As String
Sheets("Input").Select
Range("C2").Select
sheetName = Selection.Copy
Sheets.Add After:=activeSheet
activeSheet.Name = "Week of " & sheetName
This returns a new sheet with the name "Week of True". For some reason the variable is stored as "True", rather than the inputted date.
Any help would be greatly appreciated, Thank you!