+ Reply to Thread
Results 1 to 4 of 4

Auto-hide cells in one sheet based on the value in a cell in another sheet

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Auto-hide cells in one sheet based on the value in a cell in another sheet

    Hi,

    I have 2 sheets in my Excel Workbook, one called "Questions" and the other called "SOC".

    I want to:
    • If the value of cell B54 in "Questions" is "0", hide rows 68-120 in "SOC".
      If the value of cell B54 in "Questions" is "1", hide rows 81-120 in "SOC", and show rows 68-80 in "SOC".
      If the value of cell B54 in "Questions" is "2", show rows 68-120 in "SOC.

    I've tried everything I can find online, and nothing results in any movement of the rows in "SOC" at all.

    Would be grateful for some help!

  2. #2
    Registered User
    Join Date
    03-22-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Re: Auto-hide cells in one sheet based on the value in a cell in another sheet

    I should add that I already have one VBA in the sheet I'm trying to do this in - does that affect how it works?

  3. #3
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Auto-hide cells in one sheet based on the value in a cell in another sheet

    xx
    I made a little mistake, use the next post
    Last edited by vichopalacios; 04-02-2018 at 02:34 PM. Reason: I made a little mistake, use the next post
    Barriers are there for those who don't want to dream

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Auto-hide cells in one sheet based on the value in a cell in another sheet

    Hi @ rachrxg
    You can try something like this code,
    Place it into your Questions sheet Module
    I am assuming you are changing the cell B54 value manually


    Please Login or Register  to view this content.

+ 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. Hide or Unhide Rows on one sheet based on value entered in cell on another sheet
    By wfsteadman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2016, 07:30 PM
  2. Auto fill static cell on separate sheet based on changing cells in another sheet
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-15-2014, 12:31 PM
  3. [SOLVED] Hide / Unhide Row on a Sheet based on the Value of a Cell on Another Sheet
    By neslotna in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 12:23 PM
  4. Hide Rows on one Sheet based on cells in another sheet being empty
    By KDF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2013, 01:48 PM
  5. Auto Hide/Unhide Based on Results of IF Formula Pulling From Another Sheet
    By dolphinfan2k8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2012, 11:51 AM
  6. auto hide a row if the value of a cell is blank on a specific sheet.
    By russ8420 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2012, 02:13 PM
  7. Macro to hide sheet based on cell value within the sheet
    By a_dub_green in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-04-2012, 12:18 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