+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : pivotfilters.add method

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    16

    pivotfilters.add method

    hi

    'ptable is pivot table
    TEST = "D1" 'defined as string

    With PTABLE.PivotFields("DESIGN_CODE")
    .ClearLabelFilters
    .PivotFilters.Add Type:=xlCaptionContains, Value1:=TEST 'this line gives me application defined error
    End With

    could some one pls help me with this code.......cant figure out wats wrong
    thnks in advance
    vichi

  2. #2
    Registered User
    Join Date
    09-30-2011
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: pivotfilters.add method

    Quote Originally Posted by VICHI View Post
    hi

    'ptable is pivot table
    TEST = "D1" 'defined as string

    With PTABLE.PivotFields("DESIGN_CODE")
    .ClearLabelFilters
    .PivotFilters.Add Type:=xlCaptionContains, Value1:=TEST 'this line gives me application defined error
    End With

    could some one pls help me with this code.......cant figure out wats wrong
    thnks in advance
    vichi

    any suggestion guys pls help!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1