+ Reply to Thread
Results 1 to 2 of 2

Viewing multiple columns if multiple check boxes are checked.

  1. #1
    Forum Contributor
    Join Date
    06-03-2009
    Location
    Phoenix, Az
    MS-Off Ver
    MS Office 365
    Posts
    144

    Viewing multiple columns if multiple check boxes are checked.

    Hello all -

    I am trying to program my spreadsheet so that if someone clicks multiple checkboxes, multiple columns are able to be viewed side-by-side.
    For example, 2 checkboxes, 2 columns. 3 checkboxes, 3 columns.

    The code I currently have is -
    Please Login or Register  to view this content.
    The button I am using is an ActiveX control checkbox.

    Appreciate your assistance.
    Dave

  2. #2
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    80

    Re: Viewing multiple columns if multiple check boxes are checked.

    I know your question is in the VBA section, and this is not a VBA answer. However it may point you to a simpler solution.
    (See the attached spreadsheet)

    In Excel you can use "Custom Views" to view the spreadsheet in a certain way. You can make as many custom views as you want,
    and select the one you want.

    For example you have a view called "Showing all columns", where nothing is hidden.
    You can then make a view called "John" which displays columns A,B, and E (hiding columns C and D).
    Then you could have a view caller "Peter" which displays columns A,C and E (hiding columns B,D and E)
    And Mike Displaying A,D, and E etc..


    How to do it:
    1) Click on the View Tab
    2) Click on the sub-menu tab "Custom Views" (See below if this is greyed out)
    3) Click the "+" sign and make the first view "Showing all Columns"
    4) Now hide some columns, and make a new view called "John" by clicking View, Custom Views, "+"
    5) Repeat to make as many views as you want.
    6) To choose a view simply click View, custom Views, and select the one you want.

    What if the "Custom Views" is greyed out?
    a) Do you have two tabs at the bottom highlighted? Only one sheet should be open. Click on just one tab.
    b) Do you have tables anywhere? Convert them to ranges. (Select the entire table, Click Table, Convert to range)
    Don't panic about losing Table functions. You can still sort, filter and make Pivot Tables.
    If you still need the sorting and table functions, just click on the top row of your table (after converting it to a range),
    and click Data, Filter. You will have the table sort and filter functions as well as keeping and using pivot tables.

    Open the attached spreadsheet to see this working without VBA

    VBA
    All you need to do is put Step 6 into VBA code.
    Attached Files Attached Files
    Last edited by TRICKYT57; 09-17-2022 at 02:36 AM.

+ 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. Help with filtering using multiple checked boxes in a cell
    By kjohnson3740 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2020, 09:39 AM
  2. [SOLVED] How to Count Check Boxes and count the total number of boxes checked
    By t04904 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2013, 11:45 AM
  3. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 PM
  4. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  5. Macro with multiple columns and multiple rows to be checked
    By Magaru in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2012, 10:09 PM
  6. Check boxes checked
    By EGR2317 in forum Excel General
    Replies: 5
    Last Post: 06-04-2010, 02:27 PM
  7. [SOLVED] Preventing multiple check boxes from being checked
    By Jae in forum Excel General
    Replies: 3
    Last Post: 08-18-2005, 06: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