Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i need to hide rows if a cell's content is aa or bb or cc. these contents
are located in column A. can i do it by a marco? dennis |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use code like the following
Sub HideRows() Dim r& for r = 1 to Sheet1.UsedRange.Rows.Count select case Sheet1.cells(r,1).value Case "aa","bb","cc" Sheet1.Rows(r).Hidden=true Case Else Sheet1.Rows(r).Hidden=false end select Next r End Sub "Dennis Cheung" wrote: i need to hide rows if a cell's content is aa or bb or cc. these contents are located in column A. can i do it by a marco? dennis |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks, it helps.
"Alok" wrote in message ... Use code like the following Sub HideRows() Dim r& for r = 1 to Sheet1.UsedRange.Rows.Count select case Sheet1.cells(r,1).value Case "aa","bb","cc" Sheet1.Rows(r).Hidden=true Case Else Sheet1.Rows(r).Hidden=false end select Next r End Sub "Dennis Cheung" wrote: i need to hide rows if a cell's content is aa or bb or cc. these contents are located in column A. can i do it by a marco? dennis |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
hide rows if nil result of formula in specific column | Excel Discussion (Misc queries) | |||
Hide data in specific rows/colums/cells in Excel 2003 | Excel Discussion (Misc queries) | |||
how to create a formula to hide specific rows after meeting requi | New Users to Excel | |||
Hide all rows where one specific cell in that row = 0? | Excel Discussion (Misc queries) | |||
Code to hide rows based on cell contents | Excel Programming |