![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 4
|
how do I conditionally hide a row? for example if b5="Jack" then the entire row should be hidden. Pls help.. Thanks in advance
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) If Range("B5") = "Jack" Then Rows(5).Hidden = True Else Rows(5).Hidden = False End If End Sub EDIT: Please don't start a new thread with the same question. Also, please allow some time before you post and then repost. 7 whole minutes elapsed before your first request until the second one. Be reasonable. Not everybody can be your personal Excel consultant. [ This Message was edited by: Jay Petrulis on 2002-05-03 11:43 ] |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Jay is right....please don't restart
another thread...otherwise people will waste there time.....I just queried another one of your Q above and now find that Jay has answered you. :-0 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|