Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default visual c# excel 2007 pivot filter

Hi,
I'm trying to add pivot filter with multiple values checked using visual c#
2008, we tried using the xldatebetween syntax property of the pivot function,
but keep getting an error on the object data property.

Can someone please guide me to the right syntax

below is the string from the code

tablePage1.PivotFilters.Add(Excel.XlPivotFilterTyp e.xlDateBetween,tablePivot.PivotFields("Posted
Date"),"12/7/2009", missing, missing, missing, missing, missing);



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default visual c# excel 2007 pivot filter

On Wednesday, 16 December 2009 03:58:15 UTC+5:30, @discussions.microsoft.com Scott wrote:
Hi,
I'm trying to add pivot filter with multiple values checked using visual c#
2008, we tried using the xldatebetween syntax property of the pivot function,
but keep getting an error on the object data property.

Can someone please guide me to the right syntax

below is the string from the code

oPivotField.PivotFilters.Add(XlPivotFilterType.xlT opCount, oPivotTable.PivotFields("UserName"), 5, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);



On Wednesday, 16 December 2009 03:58:15 UTC+5:30, @discussions.microsoft.com Scott wrote:
Hi,
I'm trying to add pivot filter with multiple values checked using visual c#
2008, we tried using the xldatebetween syntax property of the pivot function,
but keep getting an error on the object data property.

Can someone please guide me to the right syntax

below is the string from the code

oPivotField.PivotFilters.Add(XlPivotFilterType.xlT opCount, oPivotTable.PivotFields("UserName"), 5, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

Reply
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 Label Filter in Excel 2007 Hennie[_2_] Excel Discussion (Misc queries) 0 August 2nd 09 11:18 PM
Excel 2007 Pivot Table Filter/Check Box ddate Excel Programming 0 August 5th 08 01:29 AM
Excel 2007 Pivot Table Filter (multi value) [email protected] Excel Discussion (Misc queries) 0 February 13th 08 05:04 PM
add filter to pivot table in excel 2007 Scott Excel Discussion (Misc queries) 7 May 11th 07 01:29 PM
How do I programatically pass in a filter to an excel 2007 pivot t DebO Excel Programming 0 December 8th 06 03:06 AM


All times are GMT +1. The time now is 07:58 AM.

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

About Us

"It's about Microsoft Excel"