+ Reply to Thread
Results 1 to 4 of 4

excel hiding columns based on cell values

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    Christchurch New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    45

    excel hiding columns based on cell values

    Hi
    I am hoping someone can help
    I have 3 columns H I J
    In column H:H there is a dropdown option with two options "Safety" or "Environmental" this is selected depending on the type of report
    I need collum J to be hidden when Safety is selected on that row
    I need collum I to be hidden when Environmental is selected on that row
    I have tried this code but it does not work quite the way I need it too

    Please Login or Register  to view this content.
    I have attached sheet to help show what I need

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: excel hiding columns based on cell values

    What is the issue with the code you show?
    When a single cell in column H is "Safety" or "Environmental" what do you want to happen : The complete "I" or "J" column to be hidden.
    If yes, what's up if another cell in column "H" is turned to the opposite value?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: excel hiding columns based on cell values

    Hi bouncingbudha

    Perhaps this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: excel hiding columns based on cell values

    Hi bouncingbudha

    Thanks for the Rep.

+ 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 Cell value
    By honger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2014, 02:44 PM
  2. Hiding Columns based on Row Values (continued...)
    By Coeus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2014, 10:07 AM
  3. Hiding different columns based on multiple cell values
    By shane1049 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2013, 03:52 PM
  4. 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
  5. 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

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