provincial
New Member
- Joined
- Jul 28, 2006
- Messages
- 49
Using the following code
For Each job In Sheets("JobCostReport($)").PivotTables("PivotTable1").PivotFields("Job Number") _
.HiddenItems
job.Visible = True
Next job
the code breaks on a job which is in the pivotitem dropdown list. Is this because the pivotitem is an 'old item' still in the list but with no data in the datasource, if so how can this be resolved?
.........I have turned off the item autosort option in the pivotfield, this also appears to break the code.
Cheers
Paul
For Each job In Sheets("JobCostReport($)").PivotTables("PivotTable1").PivotFields("Job Number") _
.HiddenItems
job.Visible = True
Next job
the code breaks on a job which is in the pivotitem dropdown list. Is this because the pivotitem is an 'old item' still in the list but with no data in the datasource, if so how can this be resolved?
.........I have turned off the item autosort option in the pivotfield, this also appears to break the code.
Cheers
Paul