+ Reply to Thread
Results 1 to 3 of 3

Macro to hide column based on cell value

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    coventry
    MS-Off Ver
    Excel 2003
    Posts
    11

    Macro to hide column based on cell value

    Hi,

    i've looked at a few threads that have solved other peoples questions about this, but i can't get any to work with mine, mainly because i'm a macro novice.

    I have a sheet where i need columns C,E,G,I,K,M to hide if the data validation drop down in Cell B4 is NO.
    If B4 says YES, i need those cells to stay visible.
    B4 will be blank until someone chooses Yes or No, just to let you know in case that has any effect on the code i need.

    Seems relatively simple - can anyone help?

    Andy

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Macro to hide column based on cell value

    try this
    Please Login or Register  to view this content.
    Regards, John55
    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.

    ...enjoy -funny parrots-

  3. #3
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Macro to hide column based on cell value

    or a bit shorter
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

+ 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