+ Reply to Thread
Results 1 to 7 of 7

Hide_Unhide using Chek Box

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Hide_Unhide using Chek Box

    Hi, I want to create Check boxes to hide rows.
    There are 3 Check boxes. Design, Sales, Customer

    What I want to do is if "D" is typed on Column A in any of the rows, only show rows with "D" in column A if Design Checkbox is clicked. Else, hide all rows with D.

    If "S" is typed on Column A in any of the rows, only show rows with "S" in column A if Sales Checkbox or Design Check box is clicked. Else hide all rows with S.

    If "C" is typed on Column A in any of the rows, show rowns with "C" in column A is Customers, Sales or Design check box is clicked. Else hide all rows with C.

    So prettymuch, i want the macro to scan all lines in Column A to see whether the row is D,S, or C and perform hide row as discussed before.

    Any help is much appriciated.

    thankyou

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Hide_Unhide using Chek Box

    Hi,
    it seems that you would never hide a "C" row unless there was no single checkbox selected or have I missed something??
    jmac

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Hide_Unhide using Chek Box

    hi jmac,

    Thats right. you would only hide C if none of the boxes are clicked.

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Hide_Unhide using Chek Box

    hi tharindudk

    are multiple options allowed??

    jmac

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Hide_Unhide using Chek Box

    Hi.
    No multiple options aren't allowed
    THANKS

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Hide_Unhide using Chek Box

    tharindudk.xlsm

    Hi tharindudk,

    Take a look at the attached, I didnt do any checkboxes and instead simply allowed cell A1 to be the value of the checkbox.

    I am not sure I have your requirements 100% implemented but it should be a start for you

    and I am 100% sure there are many more clever ways to resolve the problem

    jmac

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Hide_Unhide using Chek Box

    Hi Jmac,

    I managed to do it in a different way. Thankyou for your help

+ 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. One Button for Hide_Unhide
    By Ada01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2008, 02:28 PM
  2. Hide_Unhide Rows based on cell value
    By brycac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2007, 10: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