shayalsamawi
New Member
- Joined
- Sep 9, 2021
- Messages
- 16
- Office Version
- 365
- Platform
- Windows
Hi guys,
I have this VBA code:
Public Sub ShippingForecastMoveAlong()
Dim newName As String
On Error Resume Next
newName = InputBox("Please Enter New Period")
If newName <> "" Then
ActiveSheet.Copy After:=Worksheets(Sheets.Count)
On Error Resume Next
ActiveSheet.Name = newName
End If
End Sub
That duplicates the sheet into a new sheet (within the same workbook)
Before duplicating the sheet - I want any rows (starting column I row 8) with a "1" to be deleted.
I've attached a picture (users click end period and the sheet is duplicated without any rows that contain 1)
Can anybody help?
Thanks so much
I have this VBA code:
Public Sub ShippingForecastMoveAlong()
Dim newName As String
On Error Resume Next
newName = InputBox("Please Enter New Period")
If newName <> "" Then
ActiveSheet.Copy After:=Worksheets(Sheets.Count)
On Error Resume Next
ActiveSheet.Name = newName
End If
End Sub
That duplicates the sheet into a new sheet (within the same workbook)
Before duplicating the sheet - I want any rows (starting column I row 8) with a "1" to be deleted.
I've attached a picture (users click end period and the sheet is duplicated without any rows that contain 1)
Can anybody help?
Thanks so much