Results 1 to 3 of 3

Thread: NEW Excel BUG found!!!!!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Stellenbosch, South Africa
    Posts
    12

    Post

    Hi All,

    We bumped into the following problem in an excel workbook:
    Put the following range in a pivot table.

    brand qtr value
    ps q1 23
    ps q2 54
    ps xm q1 43
    ps xm q2 65

    put qtr as column and brand as row

    The following macro produce an error '1004'
    Application-defined or object defined error and it looks as if "ps <anything>" causes the error.

    Sub test()
    Dim p As PivotTable
    Dim b As Range

    Set p = ActiveSheet.PivotTables("pivottable1")
    p.PivotSelect "brand[all]", xlLabelOnly
    Set b = Selection

    For i = 1 To 2
    p.PivotSelect b.Cells(i).Value, xlDataOnly
    Next i

    End Sub

    Please help!!!!.
    [email protected]

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Post

    Which version ???
    ...but excel itself is a bug !! :-)

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Stellenbosch, South Africa
    Posts
    12

    Post

    We are running Excel version 97

    Thx.
    Abie

Posting Permissions

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



Click Here to Expand Forum to Full Width