+ Reply to Thread
Results 1 to 6 of 6

Hide rows in Sheet 1 and 2 based on Data in Sheet 3

  1. #1
    Registered User
    Join Date
    04-19-2020
    Location
    California
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    Trying to hide rows 15 and 16 in Sheet 1 and rows 19 and 20 in Sheet 2 based on data from a cell in Sheet 3.

    VBA Code works as expected with data from Sheet 3 cell D3, which is just a number value.

    However, when using data from Sheet 3 cell D2 which data is from a formula, code does not work.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    Change-event does not react on formula changes.

    Try this instead.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    04-19-2020
    Location
    California
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Re: Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    bakerman2,

    Thank you that is closer. However, answers to questions in Sheet 1 is what makes the cell dynamic in Sheet 3 cell D2.
    The rows will not hide/unhide until I click on Sheet 3.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    How about this way then ? In Questions sheet module.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-19-2020
    Location
    California
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    4

    Re: Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    Thanks bakerman2. Preliminary testing shows good.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Hide rows in Sheet 1 and 2 based on Data in Sheet 3

    You're welcome and thanks for rep+.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 rows in different sheets based on value in front sheet
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-30-2019, 07:22 PM
  2. 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
  3. Hide/unhide rows based on cell value of another sheet
    By Vivek2705 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2016, 07:55 AM
  4. Hide rows in one sheet based on another sheet
    By bwood7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 01:05 PM
  5. 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
  6. Replies: 4
    Last Post: 07-24-2012, 07:09 AM
  7. Hide Rows based on dropdown list in another sheet
    By Jeeperman4x4 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2011, 08:01 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