+ Reply to Thread
Results 1 to 2 of 2

Hiding and Un-hiding Cells in a sheet based on Values in Another

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    Holland, Michigan
    MS-Off Ver
    Excel 2018
    Posts
    6

    Hiding and Un-hiding Cells in a sheet based on Values in Another

    I am attempting to hide and un-hide a row in a sheet ("Concrete") based off of the value yielded from a option button in a different sheet ("Bid Analysis", where the VBA is written) but I can't seem to do so just by changing the option button. I actually have to open Visual Basic and run the code in order for the row to hide un-hide, and I want this to occur automatically if the option button is switched. This is a "Form Control" Option button, so the code is in the sheet and not the button itself.

    Here is the code that I have come up with:
    Please Login or Register  to view this content.
    Last edited by aheisler; 07-12-2019 at 02:55 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,554

    Re: Hiding and Un-hiding Cells in a sheet based on Values in Another

    I think you would either need to check for the option button value (True/False) or use a Worksheet Change Event handler to monitor the cell G2 for changes.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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 Sheets based on cell value, only hiding last sheet
    By mattblack2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 03:21 PM
  2. [SOLVED] Hiding rows in VLOOKUP sheet, based on null values
    By KD70 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-30-2013, 12:24 PM
  3. 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
  4. 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
  5. Excel 2007 : Hiding rows based on values in cells
    By MiserableLawStdnt in forum Excel General
    Replies: 10
    Last Post: 10-10-2011, 09:22 AM
  6. Hiding a column based on 2 or more cell values
    By excelfan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2010, 09:43 AM
  7. [SOLVED] Hiding values in cells
    By Boomer in forum Excel General
    Replies: 1
    Last Post: 03-07-2006, 04:20 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