+ Reply to Thread
Results 1 to 3 of 3

Hiding varied columns based on the value of one cell

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    US
    MS-Off Ver
    2007 and 2010
    Posts
    6

    Hiding varied columns based on the value of one cell

    All,
    I have a multi-audience spreadsheet that has a lot of basic and technical knowledge on it.
    I would like for the user to select their role from a name list drop down (created).
    If they choose Developer all rows/columns are visible
    If they choose Transitions columns K-Z are hidden.
    If they choose Desk column F and K-Z are hidden.

    I've tried my own Frankenstein monster of a script but it only works for Transitions and does nothing but select for Desk.
    Please Login or Register  to view this content.
    Any help would be appreciated, especially if I could get a little info on the correct script as I will likely need to edit this as it goes through all three departments and 7 managers for revisions.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Hiding varied columns based on the value of one cell

    First off, there is only one worksheet_change event. worksheet_change1 cannot exist. Try this:

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Registered User
    Join Date
    04-29-2015
    Location
    US
    MS-Off Ver
    2007 and 2010
    Posts
    6

    Re: Hiding varied columns based on the value of one cell

    Nailed it.
    Thanks for cleaning up my ...we''ll call it code (ie context of the multi columns and the completely-made-up-by-me useless code)

+ 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. Hiding Columns based on Value in a Cell
    By packerfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2015, 03:20 PM
  2. Hiding Multiple Columns based on Cell Value
    By simon_geoghegan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2015, 09:06 AM
  3. Hiding Columns based on Cell value
    By honger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2014, 02:44 PM
  4. [SOLVED] Hiding columns based on cell value (ListBox)
    By Big_Tater in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 10:38 PM
  5. Hiding Columns based on Cell Value
    By Dynamo418 in forum Excel General
    Replies: 1
    Last Post: 08-08-2012, 08:21 PM
  6. 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
  7. VBA code for hiding columns based on cell value
    By Aramis06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2010, 01:21 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