Hi
I am trying to cerate pivot table using a macro.
The columns that I use for poviting are dynamically created, while running the same macro but prior to run this create pivot code, and also the titles change every week.
Can you tell me how to use the dynamic titles in PivotFieds("field name")?
Please see the sample code. it is failing at this point with 1004 error.
With ActiveSheet.PivotTables("PivotTable1").PivotFields(filednamestring)
.Orientation = xlRowField
.Position = 1
End With
Thank you.
Sakuntala
Bookmarks