+ Reply to Thread
Results 1 to 2 of 2

Worksheet_Change Macro To Hide Columns Based On A Range But Only When One Cell Is Edited

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    13

    Worksheet_Change Macro To Hide Columns Based On A Range But Only When One Cell Is Edited

    Hi Forum,

    Please find attached an example of what i'm trying to achieve (note this is a small portion of a much larger sheet).

    Essentially whenever a 'Y' or a 'N' is entered into a cell the macro would check a range of cells and only hide the columns if no other 'Y' 's are found in the range.

    This needs to then be replicated for a couple of ranges within the one worksheet. (see attached)

    I guessed the below which does not work:

    Please Login or Register  to view this content.
    Many thanks in advance.

    -Ollie
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Worksheet_Change Macro To Hide Columns Based On A Range But Only When One Cell Is Edit

    Hi,

    this hides the next 2 columns to the right if specified column does not contain any 'Y' or 'y':
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

+ 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