+ Reply to Thread
Results 1 to 7 of 7

Group rows Macro?

  1. #1
    Registered User
    Join Date
    10-13-2008
    Location
    DR
    Posts
    8

    Group rows Macro?

    Hello guys,

    I got a question about how to make a macro that can group a set of rows from a complete list that are not been use in some related operations.

    I attached a file with an example about it.

    Thank you for your time regarding this issue.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I'm not too clear what you mean, but if you set the data out in a Table format then a PivotTable would be the best way

    http://www.excel-it.com/pivot_tables.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-13-2008
    Location
    DR
    Posts
    8
    For example, in the attached file I have a Data Base with all cost of the different elements you need to build a house.

    If i just want to build a house with a Slab and columns, i link the 2 items cost and get a total(My Budget). Now i will like to see just the Slab and Column cost and group/hide (no delete because is the Data Base) the other items that arent in use.

    Hope you understand it better now.

  4. #4
    Registered User
    Join Date
    10-13-2008
    Location
    DR
    Posts
    8
    Here i wrote an example of how the code may be.

    Is the attached picture
    Attached Images Attached Images

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There is no sheet in the example that could be used as a database

  6. #6
    Registered User
    Join Date
    10-13-2008
    Location
    DR
    Posts
    8
    I am attaching again the workbook, the second sheet is how macro should look like.

    I was building the code with the idea of the diagram i attached, i dont know if it is the best one, but still code isnt working.

    Please if you can help me with it,

    Thanks a lot.
    Attached Files Attached Files

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    To use a sheet as a database the data has to be in a Table format - columns of data with Header rows.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Doubt in macro..try to group rows
    By charles.2345 in forum Excel General
    Replies: 14
    Last Post: 07-15-2008, 11:23 AM
  2. macro to shade alternating rows
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2008, 01:39 PM
  3. Macro to Delete Blank Rows
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2007, 02:37 PM
  4. Running Macro to copy Rows of Formulas
    By cooh23 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-11-2007, 04:06 PM
  5. macro to hide rows
    By EdMac in forum Excel General
    Replies: 2
    Last Post: 02-02-2007, 08:12 AM

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