+ Reply to Thread
Results 1 to 15 of 15

Hiding cells from a drop down list

  1. #1
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Hiding cells from a drop down list

    I have seen a few threads here about this, but not for how I need it to work.

    I will have a drop down list with 8 options, (Days of the week Wed to Wed, hence the 8 days lol)
    There will now be 8 columns, one for each day.

    I want to be able to select the day from the list, and then have it hide all the columns except for the day selected.
    When a different day is picked, un hide that one and hide the rest.

    I will attach a book in the reply...

  2. #2
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    Book1 Testing.xlsx

    Thanks!

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Hiding cells from a drop down list

    This would be an easy VBA solution if that is what you are looking for.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    Quote Originally Posted by mikeTRON View Post
    This would be an easy VBA solution if that is what you are looking for.
    Yep. I looked online, and all I found was a drop down with 2 options, yes or no. I need my choices to match the column headers as it will change week to week.

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Hiding cells from a drop down list

    To hide and unhide columns automatically you will need to use VBA as mikeTRON has suggested. You could use conditional formatting to highlight the current selection though.

  6. #6
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    Quote Originally Posted by gak67 View Post
    To hide and unhide columns automatically you will need to use VBA as mikeTRON has suggested. You could use conditional formatting to highlight the current selection though.
    That's what I need, I just don't have the VBA skills. I also noticed, I posted this in the wrong forum, crap. Sorry! Can a mod move this to the VBA section? Thanks!

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Hiding cells from a drop down list

    Pl see the attached file. worksheet_Change event is used.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see the attached file. worksheet_Change event is used.
    Works Great!!! If I wanted to add one item, like All to show all columns, what code would I add? I want to learn all this, where is a good resource to read on coding?

  9. #9
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    To copy this to my workbook, I just paste in the code and change the cell references correct?

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Hiding cells from a drop down list

    Quote Originally Posted by Aris View Post
    I also noticed, I posted this in the wrong forum, crap. Sorry! Can a mod move this to the VBA section? Thanks!
    Done!

    ........................
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Hiding cells from a drop down list

    Yes is the answer to your doubt.
    Pl see attached file.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 05-28-2014 at 08:10 AM.

  12. #12
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    You guys are awesome!! I'll mark this as solved! Thanks again!

  13. #13
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    How do I mark it solved?

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Hiding cells from a drop down list

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  15. #15
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: Hiding cells from a drop down list

    Quote Originally Posted by Fotis1991 View Post
    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Done. Thanks!

+ 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. Replies: 2
    Last Post: 05-24-2013, 05:22 PM
  2. hiding a cascading drop down list
    By silverdan7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2013, 12:06 AM
  3. [SOLVED] Hiding rows with drop down list (VBA code help)
    By dsl99 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-17-2012, 02:29 PM
  4. [SOLVED] Hiding Columns based on the value of a drop down list
    By ExcelNewbie2534 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2012, 07:03 PM
  5. Drop down list for hiding lines
    By Spencinator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2008, 11:02 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