G
geebee
hi,
i have the following code:
e = sheets("sheet1").range("g3").value
msgbox e
with sheets("sheet1").pivottables("pivottable3").pivotfields("FAC")
..pivotitems(e).visible = true
end with
but i am getting a runtime error 1004: unable to get the pivotitems property
ofthe pivotfield class.
i made sure that the value to be made visible is true. and even recorded a
macro with me checking the item to make it visible, to compare my code to
that. but i dont understand why this is not working.
in this case, the item to be made wisible is WBO
thanks in advance,
geebee
i have the following code:
e = sheets("sheet1").range("g3").value
msgbox e
with sheets("sheet1").pivottables("pivottable3").pivotfields("FAC")
..pivotitems(e).visible = true
end with
but i am getting a runtime error 1004: unable to get the pivotitems property
ofthe pivotfield class.
i made sure that the value to be made visible is true. and even recorded a
macro with me checking the item to make it visible, to compare my code to
that. but i dont understand why this is not working.
in this case, the item to be made wisible is WBO
thanks in advance,
geebee