Results 1 to 5 of 5

Subtotal on mulitple columns with VBA

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    Subtotal on mulitple columns with VBA

    Hi Excel Gurus!!! I have a problem where I want to apply a subtotal row and then sum or count various columns when there's a change in the Department Name, in my attached example file column C. In the attached file are two sheets, one is the original file and the other is my desired results.

    The desired results shows the subtotal line hightighted with a color to make it stand out. In the example file that goes up to column T. In the case of future changes to this file (for example I add a column based on a users request), I'd like the VBA code to 'know' to now go out to column U, the same if I were to delete a column that the coloring go upto the last cell where there's data.

    Any suggested VBA code would get great!!! Thanks all!
    Attached Files Attached Files
    Last edited by Ironman; 03-03-2014 at 11:10 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Working with mulitple columns with the Columns property
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2013, 10:34 PM
  2. sumifs with mulitple columns and mulitple criteria in each column
    By bkaufman in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-18-2012, 05:11 PM
  3. Combo Box Mulitple Columns
    By Michael@Tafe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2010, 06:09 PM
  4. Replies: 0
    Last Post: 03-13-2006, 06:50 PM
  5. Repeating a formula across mulitple columns
    By aebjeffrey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2006, 04:50 PM

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