Hide calculatedField

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
Hi Todd
have you tried recording a macro while doing this manually (removing
this field)
 
Yes here is the macro I recorded when I removed the
field...

ActiveSheet.PivotTables("PivotTable1").PivotFields
("Percent Overdue"). _
Orientation = xlHidden


Then I when I set the pivottable back to the way it was
right before the macro was run, and then run the macro
again, I get the error: "Run-time error '1004':
Unable to get the PivotFields property of the PivotTable
class"

This is why I think it may be an Excel or VBA glitch. Its
like the macro recorder is recording the wrong code.
 
Hey this is a bug. I looked on google groups and
websearch and it has been reported to Microsoft.


You cannot hide a calculatedfield programmatically.
 

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