Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Defined or object-defined error

Status
Not open for further replies.

Hacktastic

Technical User
Feb 27, 2007
54
US
Hello, I have this small vba code that takes the value of a named range and tell it to change that field to that given value in a pivot

Sub CarrierControl()

Sheets("pvts").PivotTables("Master").PivotFields("network operator").ClearAllFilters
Sheets("pvts").PivotTables("Master").PivotFields("network operator").CurrentPage = Range("Carriertwo").Text

end sub

carriertwo is the name of the range and passes in values correctly. if I hardcode the value to the pivot, it works. but it wont work with the named range.

any help would be greatly appreciated.

Chris
 
wow....

everyone who ever had this issue, please use

.value

instead of

.text

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top