ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error Using the PivotFilters function (https://www.excelbanter.com/excel-programming/414333-error-using-pivotfilters-function.html)

jmlozares

Error Using the PivotFilters function
 
hi to all!

I'm just new in pivottable programming in excel. I can't get to work the
PivotFilters function, the statement is written as:

shtWorksheet.PivotTables(1).PivotFields(23).PivotF ilters.Add Type:
=xlValueIsBetween, Value1:="101"

running this statement causes me an error saying:

Runtime error 1004, Application-define or Object defined error.


Thanks in advance for replies.


Nigel[_2_]

Error Using the PivotFilters function
 
The worksheet, pivot table or pivot field is missing?

--

Regards,
Nigel




"jmlozares" <u44951@uwe wrote in message news:87756b22bab9b@uwe...
hi to all!

I'm just new in pivottable programming in excel. I can't get to work the
PivotFilters function, the statement is written as:

shtWorksheet.PivotTables(1).PivotFields(23).PivotF ilters.Add Type:
=xlValueIsBetween, Value1:="101"

running this statement causes me an error saying:

Runtime error 1004, Application-define or Object defined error.


Thanks in advance for replies.


jmlozares via OfficeKB.com

Error Using the PivotFilters function
 
Thanks nigel!

I was able to solve my problem. I've used the Visible property of the
PivotItem object instead.

Regards,
Jan


Nigel wrote:
The worksheet, pivot table or pivot field is missing?

hi to all!

[quoted text clipped - 9 lines]

Thanks in advance for replies.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200807/1



All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com