View Single Post
 
Old 04-01-2017, 04:55 AM
hunter1751 hunter1751 is offline Windows 10 Office 2013
Novice
 
Join Date: Apr 2017
Posts: 2
hunter1751 is on a distinguished road
Default Excel VBA ShowDetail Help Needed

I am trying to use VBA to show the details within a Pivot Table.

My code is:
With Sheets("Pivot_Table").PivotTables("PivotTable2").T ableRange1
.Cells(.Rows.Count, .Columns.Count).ShowDetail = True
End With

I am doing this with several different pivot table files and the above code works without any errors on the other files but only on one file I receive the error, "Unable to set the ShowDetail property of the Range class"

Any suggestions on how to fix this?
Reply With Quote