ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert a blank row in a Pivot table (https://www.excelbanter.com/excel-programming/398574-insert-blank-row-pivot-table.html)

JohnB

Insert a blank row in a Pivot table
 
Hi all
I'd like to insert a blank row after each subtotal using vb code in pivot
table. All the books I've look at don't talk about it. Is it possible??

TIA
johnb

Roger Govier[_3_]

Insert a blank row in a Pivot table
 
Hi John

Sub test()
ActiveSheet.PivotTables("PivotTable1").PivotFields ("Name") _
..LayoutBlankLine = True
End Sub

For Pivot Fields, insert the name of the field which has Subtotals set and
change the Pivot table name to suit.
Setting the value to False will remove the blank line.

--
Regards
Roger Govier



"johnb" wrote in message
...
Hi all
I'd like to insert a blank row after each subtotal using vb code in pivot
table. All the books I've look at don't talk about it. Is it possible??

TIA
johnb




JohnB

Insert a blank row in a Pivot table
 
Cheers Roger

"johnb" wrote:

Hi all
I'd like to insert a blank row after each subtotal using vb code in pivot
table. All the books I've look at don't talk about it. Is it possible??

TIA
johnb



All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com