Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() There it is again: This one to hide rows with "info" in column B: Dim cell As Range For Each cell In Range("B:B") If cell = "i" Then Rows(cell.Row).Hidden = True Next (Work fine...) And this one to show them back: Rows("1:100").Select Selection.EntireRow.Hidden = False However, the "show all" button doesn't work once I hit the "hide info" button... Please help! Can any1 tell me why? -- Turquoise_dax ------------------------------------------------------------------------ Turquoise_dax's Profile: http://www.excelforum.com/member.php...o&userid=35185 View this thread: http://www.excelforum.com/showthread...hreadid=553691 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think that in your Unhide part, Excel cannot select the rows that are
already hidden. You really want to avoid selecting things because it slows everything down. Why don't you just use exactly the same code but make them unhidden instead: Sub Unhide() Dim cell As Range For Each cell In Range("B:B") If cell = "i" Then Rows(cell.Row).Hidden = False Next End sub Or try this if you just want the first 100 rows: Sub Unhide2() Dim iRow As integer For iRow = 1 to 100 Rows(iRow).Hidden = False Next iRow End sub -- Allllen "Turquoise_dax" wrote: There it is again: This one to hide rows with "info" in column B: Dim cell As Range For Each cell In Range("B:B") If cell = "i" Then Rows(cell.Row).Hidden = True Next (Work fine...) And this one to show them back: Rows("1:100").Select Selection.EntireRow.Hidden = False However, the "show all" button doesn't work once I hit the "hide info" button... Please help! Can any1 tell me why? -- Turquoise_dax ------------------------------------------------------------------------ Turquoise_dax's Profile: http://www.excelforum.com/member.php...o&userid=35185 View this thread: http://www.excelforum.com/showthread...hreadid=553691 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanx: works wonders! -- Turquoise_dax ------------------------------------------------------------------------ Turquoise_dax's Profile: http://www.excelforum.com/member.php...o&userid=35185 View this thread: http://www.excelforum.com/showthread...hreadid=553691 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Toolbar buttons to hide/unhide sheets | Excel Discussion (Misc queries) | |||
Hide Unhide Buttons | Excel Discussion (Misc queries) | |||
Enabling option „Format rows“ to hide/unhide rows using VBA-code? | Excel Discussion (Misc queries) | |||
Hide/Unhide Buttons | Excel Discussion (Misc queries) | |||
i have rows missing on my spreadsheet but i cannot unhide them? | Excel Discussion (Misc queries) |