Pivot Table error

  • Thread starter Thread starter joey041
  • Start date Start date
J

joey041

When I create a pivottable, one of the columns appears on
top of a column so there is no drop-down field. I've
installed Service Pack 3 and still no go.
 
I'm not sure what you mean by a column on top of a column. You could try
running the following code, which enables item selection in the fields
in a pivot table.
 
And here's the "following code" --

'=================
Sub EnableSelection()
Dim pt As PivotTable
Dim pf As PivotField
Set pt = ActiveSheet.PivotTables(1)
For Each pf In pt.PivotFields
pf.EnableItemSelection = True
Next
End Sub
'=====================
 

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

Back
Top