+ Reply to Thread
Results 1 to 2 of 2

Macro to "Group" (hide/show toggle) each dataset & marked columns.

  1. #1
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Macro to "Group" (hide/show toggle) each dataset & marked columns.

    Hi,

    I am wanting to make a macro to use Excel's "group" feature/tool as found in Data > Group but via a macro, examples of the function that I am wanting to use:

    Please Login or Register  to view this content.
    The objective of the macro would be to "group" each dataset in my sheet without the title row and also any marked/defined columns.

    I want to define columns based on a string such as:
    Please Login or Register  to view this content.
    For the first one in the list "Title 4" that one is a column on it's own which is easy to do.

    The hard part is when it gets to the column titled "E 8" it needs to detect that this column is marked to be grouped, check the columns to the right until a column is no longer being "matched" in the GROUPCOLUMNS variable and hide them as a single group, but then when it cycles to the next column titled "E 4" it should skip this one as it's already been "grouped"

    As for grouping of the datasets, it's all of the "data" rows except for the titles in each area

    In my attached document, you can see the easy visual view of how it would group them by comparing Sheet 1 and Sheet 2

    I'd prefer to stick with this sort of structure macro as someone else made as it's nice and easy to understand for me.

    Please Login or Register  to view this content.
    I'd greatly appreciate some advice.
    Attached Files Attached Files
    Last edited by Hyflex; 07-02-2016 at 01:16 PM.

  2. #2
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Macro to "Group" (hide/show toggle) each dataset & marked columns.

    Updated the thread with some changes to make it make more sense

+ 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. How to show Items marked with "hide" in the PageField dialog
    By vdr60 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2014, 05:06 PM
  2. [SOLVED] VBA Hide/Unhide row in work sheet if value in column H = "Y" w/ a toggle button
    By ywang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 01:02 AM
  3. Replies: 2
    Last Post: 01-26-2011, 06:45 AM
  4. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM
  5. Replies: 0
    Last Post: 02-01-2006, 03:35 AM
  6. Excel 2002 "Protect Sheet", but allow "Hide Columns"?
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. Excel 2002 "Protect Sheet", but allow "Hide Columns"?
    By VP Safe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. [SOLVED] Excel 2002 "Protect Sheet", but allow "Hide Columns"?
    By VP Safe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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