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:
i want hide the row. thanksTarget.RowHeight = 0
much thansk friends
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks