CatieBear93
New Member
- Joined
- Nov 30, 2021
- Messages
- 3
- Office Version
- 2021
- 2010
- Platform
- Windows
I am trying to copy an entire sheet, pasting only the values and renaming the new sheet to the current date.
This code allows me to input the date manually, but it copies formatting and the formulas too.
Sub AddNameNewSheet1()
Dim Newname As String
Newname = InputBox("Name for new worksheet?")
If Newname <> "" Then
Sheets.Add Type:=xlWorksheet
ActiveSheet.Name = Newname
End If
End Sub
This code allows me to input the date manually, but it copies formatting and the formulas too.
Sub AddNameNewSheet1()
Dim Newname As String
Newname = InputBox("Name for new worksheet?")
If Newname <> "" Then
Sheets.Add Type:=xlWorksheet
ActiveSheet.Name = Newname
End If
End Sub