The code I am using runs only on the active sheet. It does not cycle through the workbook. Can anyone tell me how I can fix the problem?
Sub Project2()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "Portfolio" Then
Rows(37).EntireRow.Delete
End If
Next ws
End Sub
Sub Project2()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "Portfolio" Then
Rows(37).EntireRow.Delete
End If
Next ws
End Sub