Y
Yarroll
Hi,
What on earth is wrong with the followig lines: (this is part of a macro)
wbkBook.Activate
For Each x In ActiveWorkbook.Sheets
If Not x.Name = "Summary" Or x.Name = "Summary1" Then
x.Activate
Rows("2:2500").Delete Shift:=xlUp
End If
Next x
IOW, I need to exclude Sheets "Summary", "Summary1" from row deletion.
Excel goes ahead and deletes rows in both of these.
Thanks, Yarroll
What on earth is wrong with the followig lines: (this is part of a macro)
wbkBook.Activate
For Each x In ActiveWorkbook.Sheets
If Not x.Name = "Summary" Or x.Name = "Summary1" Then
x.Activate
Rows("2:2500").Delete Shift:=xlUp
End If
Next x
IOW, I need to exclude Sheets "Summary", "Summary1" from row deletion.
Excel goes ahead and deletes rows in both of these.
Thanks, Yarroll