+ Reply to Thread
Results 1 to 5 of 5

how to hide a row based if a cell is empty

  1. #1
    Registered User
    Join Date
    01-25-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    how to hide a row based if a cell is empty

    i wasted all day trying to figure this out i have a workbook with 4 pages i need to make a macro that would hide a row only if the third column is blank.
    im new to forums and to VBA
    can someone help me out

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: how to hide a row based if a cell is empty

    Hello & Welcome to the Board,

    How about...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-25-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: how to hide a row based if a cell is empty

    wow thanks.

    now how do i unhide?

    and is there a way that if the column a is blank then it should not hide it?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: how to hide a row based if a cell is empty

    How about this...

    The first macro will hide all rows where a cell in column C is blank and a cell in column A is not blank. Did I read your requirement right?

    The second macro will unhide all rows.

    Both macros will also perform this on all worksheets in your workbook.

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

  5. #5
    Registered User
    Join Date
    08-17-2004
    Posts
    1

    Re: how to hide a row based if a cell is empty

    Hi thanks for this. But i have column c & d. i want to hide rows only when both columns are either "0" value or "blank" value. How to write please

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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