Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete Blank Rows when Pivot Table included on sheet
Hi,
I've run code to delete blank rows which works fine. That is, it works fine until I'm deleting blank rows on a sheet which also contains a few pivot tables. I encounter an error message regarding not being able to change pivot table. Here is my code: Thanks! Dim x As Long With ActiveSheet For x = .Cells.SpecialCells(xlCellTypeLastCell).Row _ To 1 Step -1 If WorksheetFunction.CountA(.Rows(x)) = 0 Then ActiveSheet.Rows(x).Delete End If Next End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot Table - with blank rows | Excel Discussion (Misc queries) | |||
Pivot Table blank rows | Excel Discussion (Misc queries) | |||
delete all blank rows in a table | Excel Programming | |||
Delete all Blank Rows from data table | Excel Programming | |||
Macro to look for blank rows in sheet, delete the row and autofit | Excel Programming |