Unable to get the PivotItems property of the PivotField Class

M

mserber

I have an existing Pivot Table and want to use VBA code to select item
from a dropdown list.

When I execute the following code, I get the error message: Unable t
get the PivotItems property of the PivotField class,

ActiveSheet.PivotTables("PivotTable3").PivotFields("Group").PivotItems(parm_file_workbook).Visibl
= True

I've checked the Pivot Table Name and "PivotTable3" is correct. Th
parm_file_workbook value is "AIM", which is a valid value in th
"Group" field.

I've also tried adding the following code before execute the abov
code: ActiveSheet.PivotTables("PivotTable3").PivotCache.Refresh, bu
that did not solve the problem.

I've done some research and found that several people have receive
this error. However, none of the proposed solutions seemed to work o
address this specific problem.

Can anyone help me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top