Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Pagefield - select "(All)"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WayneR - 22 May 2008 18:39 GMT
Hi

I have 2 differnt fields for my page - I want to set one to a user enter
value and the other to "ALL" items. I have tried the following

       pvt.PivotCache.Refresh
           pvt.PivotFields(str_selection_value1).CurrentPage = str_selection
           pvt.PivotFields(str_selection_value2).CurrentPage = "(All)"

The pivot table seems to be suing a value of "(All)" , selecting nothing
since there is no "(All)" value, instead of selecting all items. Is there an
XLPageFieldsAll constant, I can use.  

Also, I am using XL 2007 - the sheet is in compatibility mode, some users
ahve 2007 some 2003.

Thanks
Wayne

pvt.PageFields(1).CurrentPage = "(All)"

Signature

WayneR

WayneR - 23 May 2008 20:21 GMT
I found my problem -- I don't know if this is just for files saved in 97-2203
compatible mode or not..  What I had to do was remove the "slect multiple"
from the pagefiled... it worked fine after that.....

Signature

WayneR

> Hi
>
[quoted text clipped - 16 lines]
>
> pvt.PageFields(1).CurrentPage = "(All)"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.