+ Reply to Thread
Results 1 to 3 of 3

Macro to hide rows on a worksheet, based on a cell's value on another worksheet.

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to hide rows on a worksheet, based on a cell's value on another worksheet.

    I am pretty new to macros. I'll try to explain my issue the best I can.

    I need rows 10-20 on worksheet A to hide when the value of D3 on worksheet B is equal to 0, and to automatically unhide those rows when the value is anything greater than 0.
    The value of D3 is calculated from various cells on worksheet B, so a user would not physically change D3's value.

    Please let me know if I need to explain anything further. Thank you in advance!!

  2. #2
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: Macro to hide rows on a worksheet, based on a cell's value on another worksheet.

    Hello
    What do you mean automatically ?
    Do you change the value in D3 as a trigger to hide or unhide the rows on previous sheet ?

    Regards
    Most helpful to mark solved items as such (see help for directions). Star ratings are always welcome.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to hide rows on a worksheet, based on a cell's value on another worksheet.

    It would be best if we new what ranges affected D3 so we could limit the amount of times the code runs but I understand that may not be possible for you. Try this:

    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 rows on another worksheet based on value in that row
    By ahtigers10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2014, 02:55 PM
  2. Hide rows based on worksheet visibility
    By KSALS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2013, 09:08 AM
  3. Replies: 4
    Last Post: 05-08-2012, 10:28 AM
  4. Hide/Unhide Rows in One Worksheet Based on Values in Cells in Another Worksheet
    By xponent_es in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2011, 03:26 PM
  5. VBA to hide rows based on cell value in another worksheet
    By jamesstorx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2010, 05:07 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