Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() i want to write a macro when a cell gives error then hide the entire row ( #VALUE! ) Sub HideRows() BeginRow = 1 EndRow = 10 ChkCol = 2 For RowCnt = BeginRow To EndRow If Cells(RowCnt, ChkCol).Value = "-" Then Cells(RowCnt, ChkCol).EntireRow.Hidden = True Else Cells(RowCnt, ChkCol).EntireRow.Hidden = False End If Next RowCnt End Sub thanks in advance -- barkiny ------------------------------------------------------------------------ barkiny's Profile: http://www.excelforum.com/member.php...o&userid=20397 View this thread: http://www.excelforum.com/showthread...hreadid=521016 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
hide rows based on cell value | New Users to Excel | |||
hide rows based on value in cell | Excel Discussion (Misc queries) | |||
Three tables on one worksheet, need to hide rows | Excel Discussion (Misc queries) | |||
Hide rows if cells = 0.00 | Excel Discussion (Misc queries) | |||
AUTO HIDE ROWS | Excel Worksheet Functions |