View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default hide rows in workbook

Hi Umesh,

Am Mon, 7 May 2012 12:23:18 +0000 schrieb Umesh Banga:

is it possible; that when i enter a certain age lets say 55, then in all
the other four scenario sheets should hide rows 15:20.


try in code module of input sheet:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i As Integer

If Target.Address < "$B$4" Or Target.Count 1 _
Then Exit Sub

For i = 2 To Sheets.Count
Sheets(i).Rows("15:20").Hidden = Target = 55
Next
End Sub


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2