+ Reply to Thread
Results 1 to 3 of 3

Macro to hide rows

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro to hide rows

    I need a macro that will automatically hide a row if cell A1 equals 0. I tried using the filter function but it will not unhide the row if the value in cell A1 changes from 0. BTW, cell A1 is linked to another cell on a different sheet.

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Macro to hide rows

    Which row would you like to hide if cell A1 = 0? Will A1 be the comparisson for all of the rows being hidden? You say you are using a filter, what row is the header row?

    Or are you trying to hide rows that have a value of 0 in that row, column A? In that case, what is the header row?

  3. #3
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Macro to hide rows

    Well, this is a stab in the dark, but I'm guessing it's the second situation and the header row is in row 1.
    Please Login or Register  to view this content.
    That code autofilters to show you all non-zero values in column A. You will need to place this in the worksheet object in the left pane of the Editor (double-click to open that object).

+ 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