Accessing Pivot Table's Data in VBA

S

spjoseph0511

I have a pivot table that is linked to data returned by MS Query.
I'd like to highlight cells in the data body of the pivot table, base
on the values of other fields returned by the query. How do
accomplish this
 
T

Tom Ogilvy

Select your cells and apply conditional formatting (format, conditional
formatting)

This would need to be done after each change in the pivot table I believe.
 
S

spjoseph0511

Tom,

The value I wish to format on is not on the active sheet. It is
field in the source row of the data. As far as I know, the only way
can view the value of that field is if I drill down, and a ne
worksheet opens with the row.

How would I reference the value of that field if it is not displayed o
the active sheet?

Thanks,
Stephe
 
T

Tom Ogilvy

I don't think there is an equivalent to drilldown in VBA.

You might have to grab the source data in ADO or something and try to get to
the data.
 

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

Top