Results 1 to 30 of 30

Using Value in Cell to hide/unhide rows

Threaded View

  1. #2
    Registered User
    Join Date
    02-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Using Value in Cell to hide/unhide rows

    I manage to make some progress. I used the following codes to perform the function

    Sub HIDEROWUSINGTEXT()
    If Range("A9").Value = 5 Then
    Rows("7:7").EntireRow.Hidden = True
    Else
    Rows("7:7").EntireRow.Hidden = False
    End If
    End Sub
    By having a value 5 in cell A9 and when i ran the macro, row 7 got hidden. However, i had to run the marco everytime i change the value in the cell. Maybe if anyone can help me modify the codes to hide/unhide row 7 every time i change it would be good...
    Last edited by maayub15; 02-02-2012 at 08:43 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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