+ Reply to Thread
Results 1 to 4 of 4

Hiding columns based on drop down list selection

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    dubai
    MS-Off Ver
    Excel 2013
    Posts
    4

    Smile Hiding columns based on drop down list selection

    I have looked at many threads on this and cannot find a solution that will work for me.
    I am trying to set up a sheduling system for my work. I have hundreds of columns that will have dates as the heading. There will be 6 columns per date to represent different shift timings.
    I have a drop down box that you can pick the appropriate shift (2, 4, 6, 8, 12, 24).
    When the shift is chosen, all columns that do not match the selection are hidden.

    I have attached an example if anyone would be able to assist please.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Hiding columns based on drop down list selection

    Hello acadzow
    Welcome to the forum
    Right click on sheet tab and put this code
    Please Login or Register  to view this content.
    Last edited by YasserKhalil; 12-25-2015 at 10:17 AM. Reason: Fix the code
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Hiding columns based on drop down list selection

    Unhide the columns first.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-11-2014
    Location
    dubai
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Hiding columns based on drop down list selection

    Thanks, works perfectly, Much appreciated for the quick reply during Christmas.
    Merry Christmas to all.

    If I wanted to adjust which columns are shown, what would I change.
    For example, if a 12 hour shift is chosen, all columns with a 0 and 12 would appear, hence start and finish times. If a 24 hour shift is chosen, all 3 choices would be visible.
    I tried playing around with the code for this but seem to make everything worse.
    Last edited by acadzow; 12-26-2015 at 04:55 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 hiding rows based on drop down selection
    By J-Fly in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 11-23-2012, 02:07 PM
  2. Hiding rows based on drop down selection of cell
    By J-Fly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2012, 01:37 PM
  3. [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
  4. Hiding Columns based on Drop Down list selection
    By forge13 in forum Excel General
    Replies: 5
    Last Post: 11-25-2011, 07:39 AM
  5. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-30-2011, 09:24 AM
  6. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 06:49 AM
  7. Hiding Rows based on Drop Down menu selection
    By smurph_27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2008, 08:36 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