+ Reply to Thread
Results 1 to 2 of 2

Thread: how hide a Row / Column

  1. #1
    Registered User
    Join Date
    02-14-2006
    Posts
    17

    how hide a Row / Column

    if the user enter a 0 in a the column A (or other) i want hide the row

    VBA Noob(M)
    Forum Moderator write me:
    --------------------------------------------------------
    Right click sheet tab > select view code > paste in the below.

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A1:Az1000")) Is Nothing Then
        Select Case Target.Value
            Case 0: Target.RowHeight = 0
            Case Else: Target.RowHeight = 5
        End Select
    End If
    End Sub
    --------------------------------------------------------
    but inplace of:

      Target.RowHeight = 0
    i want hide the row. thanks

    much thansk friends

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777
    Thread moved to Programming forum.

    See the Hidden property as it applies to the Range object in VBA help.
    Last edited by shg; 07-16-2008 at 12:02 AM.

+ 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.2.0