+ Reply to Thread
Results 1 to 5 of 5

create subtotals and copy subtotals to a new sheet with VBA

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    The Netherlands, Den Haag
    MS-Off Ver
    Office 2010
    Posts
    4

    create subtotals and copy subtotals to a new sheet with VBA

    Hallo,

    I have got a table in Excel witch I want to sort on column Sortering and add subtotals when the value in the column sortering changes. Hereafter the subtotals have to be copied to on existing sheet in the workbook.

    I attach several print screens of the situations.

    Thanks.

    Working with Excel 2010.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by tonupgirl; 07-06-2012 at 03:58 AM. Reason: add attachment org Excel file

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: create subtotals and copy subtotals to a new sheet with VBA

    Please attach a sample excel file instead of screenshots.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-20-2010
    Location
    The Netherlands, Den Haag
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: create subtotals and copy subtotals to a new sheet with VBA

    I attached the original Excel file.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: create subtotals and copy subtotals to a new sheet with VBA

    Should the subtotals be created for each numerical field in your sheet Artikelen?

    Also should the subtotals be created for other sheets in your file?

    Where should the subtotals be copied to?

    Which columns containing the subtotals should be copied? All?

  5. #5
    Registered User
    Join Date
    09-20-2010
    Location
    The Netherlands, Den Haag
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: create subtotals and copy subtotals to a new sheet with VBA

    Good morning Arlette,

    1) Subtotals should be created in the columns D, E, F, G, H, J, K, L, N, O, P, Q, R. The columns D, G, N, P, Q should only show unique values, the other columns should show totals.
    2) No only subtotals should be created from sheet Artikelen to Invoice_hulp.
    3) The subtotals should be copied to Invoice_Hulp2.
    4) All

    Hope this helps.

    Brigitte

+ 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