+ Reply to Thread
Results 1 to 3 of 3

How to hide rows with macro if another cell is not blank?

  1. #1
    Registered User
    Join Date
    01-12-2018
    Location
    East Hampton, CT
    MS-Off Ver
    2016
    Posts
    2

    How to hide rows with macro if another cell is not blank?

    Hello and thanks advance for any help you can provide!

    I have a pretty simple thing I need to do, but my macro-writing skills are basically nonexistent.

    I have a cell, A163, that has a formula in it. When certain criteria happens, the cell reads a warning, when that criteria is not met, the cell is blank (double quotes "" to be exact). Simple IF formula, basically =IF(A1=1,"WARNING","")

    I'm looking for a way to hide rows 474 to 536 when cell A163's formula results in a blank.

    Any ideas? Hopefully this is easy!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: How to hide rows with macro if another cell is not blank?

    You can set a condition, so if A163="" then hidden rows will be true and if it does not ="" then hidden rows will be untrue.



    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-12-2018
    Location
    East Hampton, CT
    MS-Off Ver
    2016
    Posts
    2

    Re: How to hide rows with macro if another cell is not blank?

    Quote Originally Posted by davesexcel View Post
    You can set a condition, so if A163="" then hidden rows will be true and if it does not ="" then hidden rows will be untrue.



    Please Login or Register  to view this content.
    YES, that did it, thank you!

+ 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. [SOLVED] Macro for Hide blank rows and Unhide the rows with cells
    By Neilesh Kumar in forum Excel General
    Replies: 4
    Last Post: 04-12-2017, 06:06 AM
  2. Hide rows for blank Cells when there is another blank cell below
    By bilich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2016, 08:29 PM
  3. [SOLVED] Macro needed to hide rows within multiple ranges if the cell value in each row is blank
    By TomP1988 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 11:04 AM
  4. Macro to Hide Blank Rows
    By akbar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2014, 04:45 AM
  5. [SOLVED] Macro to hide blank rows
    By Naz555 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-07-2014, 03:19 AM
  6. [SOLVED] macro to hide rows if cell is blank, unhide if it contains text
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 10:02 PM
  7. [SOLVED] macro to hide rows if cell is blank
    By Shooter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2005, 06:05 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