LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting values in the page field of a pivot table


Hi,

I have a spreadsheet that has a pivot table on it.
If I right-click and refresh, it seems to refresh without error.


if I try to refresh it with VBA using ths code:
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh

I get the error:
"Run time error 1004: [Microsoft][ODBC Access Driver] The connection
for viewing your linked Microsoft Excel worksheet was lost"



ALSO if I try to use VBA to select from the page field drop down using
this code:

ActiveSheet.PivotTables("PivotTable1").PivotFields ("FOB").CurrentPage =
"hdw"

(i'm trying to select hdw from the page field drop down)

the error I get is:
"Unable to set the _Default property of the PivotItem Class"

can anyone help?
when I do these manually I don't get any errors.

thanks,
Matt


--
matpj
------------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=514887

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Page Field Nate Excel Discussion (Misc queries) 4 December 24th 07 03:11 PM
Page field - pivot table yshridhar Excel Discussion (Misc queries) 0 August 1st 07 04:48 AM
Duplicate values in Pivot table Page Field dropdown.. [email protected] Excel Worksheet Functions 1 June 28th 06 03:45 AM
Pivot Table Page Field Neily Excel Discussion (Misc queries) 3 February 24th 05 01:23 PM
Pivot Table Page Field Todd Huttenstine Excel Programming 2 May 6th 04 04:24 PM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"