ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table VBA (https://www.excelbanter.com/excel-discussion-misc-queries/108031-pivot-table-vba.html)

help

Pivot Table VBA
 
with ActiveSheet.PivotTables("PivotTable").PivotFields( "sls_no")
.Orientation = xlRowField
.Position = 1

I am trying to figure out what code should be used to drag from the field
list into the pivot table. The code above does not work. Does anyone know the
correct code?

Thank you.

Debra Dalgleish

Pivot Table VBA
 
You could turn on the macro recorder as you manually drag the field into
the pivot table. Then, use the code that was created.

HELP wrote:
with ActiveSheet.PivotTables("PivotTable").PivotFields( "sls_no")
.Orientation = xlRowField
.Position = 1

I am trying to figure out what code should be used to drag from the field
list into the pivot table. The code above does not work. Does anyone know the
correct code?

Thank you.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 01:17 PM.

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