Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use a cells contents--in H26 on Sheet1- and trying to modify a
pivot table page field--on Sheet2. The code is below. ActiveSheet.PivotTables("PivotTable2").PivotFields ("Product Line").CurrentPage _ = Range("h26").Value It may be using the .visible property but I can't seem to use that correctly.Does anyone have any ideas? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Fully qualify the reference to range("H26"), or Excel will assume that
it's on Sheet2: ActiveSheet.PivotTables("PivotTable2") _ .PivotFields("Product Line").CurrentPage _ = Sheets("Sheet1").Range("H26").Value DynamiteSkippy wrote: I am trying to use a cells contents--in H26 on Sheet1- and trying to modify a pivot table page field--on Sheet2. The code is below. ActiveSheet.PivotTables("PivotTable2").PivotFields ("Product Line").CurrentPage _ = Range("h26").Value It may be using the .visible property but I can't seem to use that correctly.Does anyone have any ideas? Thanks -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Debra... It works great.
"Debra Dalgleish" wrote: Fully qualify the reference to range("H26"), or Excel will assume that it's on Sheet2: ActiveSheet.PivotTables("PivotTable2") _ .PivotFields("Product Line").CurrentPage _ = Sheets("Sheet1").Range("H26").Value DynamiteSkippy wrote: I am trying to use a cells contents--in H26 on Sheet1- and trying to modify a pivot table page field--on Sheet2. The code is below. ActiveSheet.PivotTables("PivotTable2").PivotFields ("Product Line").CurrentPage _ = Range("h26").Value It may be using the .visible property but I can't seem to use that correctly.Does anyone have any ideas? Thanks -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Page Field | Excel Discussion (Misc queries) | |||
Page field - pivot table | Excel Discussion (Misc queries) | |||
Pivot Table Page Field | Excel Discussion (Misc queries) | |||
Pivot Table Page Field | Excel Discussion (Misc queries) | |||
Pivot Table Page Field | Excel Programming |