+ Reply to Thread
Results 1 to 3 of 3

Hide columns depending on a text selection in a drop-down list

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    2

    Hide columns depending on a text selection in a drop-down list

    Hi,

    I have a worksheet where a selection in a drop down list needs to automatically hide columns depending on the selection. I cant quite nail it and have been trying different suggestion from other threads without any luck.
    The value is choosen in cell B2 and in the sheet code I have written which columns needs to be hidden after each selection as you can see in the attachment.

    My issue is that nothing happens when I choose from the drop down and I dont know why as it has worked before with automatic updates.

    Hope someone with a sharp brain can crack this otherwise the computer goes out the window.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Hide columns depending on a text selection in a drop-down list

    I change the type of object only because I did not want to change too many things in your code, then the execution of the code occurs when you change the drop down selection.
    It will not work when you select Projects, Showroom or Internet, because you do not have any columns with those headers the rest hide on command.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Hide columns depending on a text selection in a drop-down list

    You are the best!!! Tried a lot of different solutions but your's work and with a small modification I got projects, showroom and internet to function as well. Thanks a lot of your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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