+ Reply to Thread
Results 1 to 2 of 2

strange problem subtotal

  1. #1
    hans
    Guest

    strange problem subtotal

    I use the following code:
    Selection.Subtotal GroupBy:=7, Function:=xlSum, TotalList:=Array(4, 5), _
    Replace:=True, PageBreaks:=False, SummaryBelowData:=True
    Selection.Subtotal GroupBy:=8, Function:=xlSum, TotalList:=Array(4, 5),
    _
    Replace:=False, PageBreaks:=False, SummaryBelowData:=True

    Collum 7 cantains the name of the persons
    Collum 8 contains the tpe of expences they make

    This works correct for the first person
    It gifs the subtotal of the last expenses type and then the total of the
    person of all expenses

    For all later persons is goes wrong
    Now it gifs (after the last expense)
    The total of all expenses of this person
    and on the next line it shows the total of last expenses type
    (It is swapt)

    What is going wrong?

    Greetings Hans

    PS i use excel 2003



  2. #2
    Fredrik Wahlgren
    Guest

    Re: strange problem subtotal


    "hans" <hans@hotmail.com> wrote in message
    news:u0hN2K0OFHA.1392@TK2MSFTNGP10.phx.gbl...
    > I use the following code:
    > Selection.Subtotal GroupBy:=7, Function:=xlSum, TotalList:=Array(4, 5),

    _
    > Replace:=True, PageBreaks:=False, SummaryBelowData:=True
    > Selection.Subtotal GroupBy:=8, Function:=xlSum, TotalList:=Array(4,

    5),
    > _
    > Replace:=False, PageBreaks:=False, SummaryBelowData:=True
    >
    > Collum 7 cantains the name of the persons
    > Collum 8 contains the tpe of expences they make
    >
    > This works correct for the first person
    > It gifs the subtotal of the last expenses type and then the total of the
    > person of all expenses
    >
    > For all later persons is goes wrong
    > Now it gifs (after the last expense)
    > The total of all expenses of this person
    > and on the next line it shows the total of last expenses type
    > (It is swapt)
    >
    > What is going wrong?
    >
    > Greetings Hans
    >
    > PS i use excel 2003
    >
    >


    I think this article will help
    http://support.microsoft.com/kb/831824

    /Fredrik



+ 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