LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Hiding/Showing Rows

This may seem a little easy to some of you guys, but i am just
starting to lean about excel and vba. So i though i would ask for some
help.

================================================== ====================

I currently have on a sheet a list of names from B6 to B43 and then in
the next column i have either a yes or no from C6 to C43.(The Yes & No
Are determined from another sheet)

Is there any way that i can hide all of the rows that contain Yes and
only show the rows containing No?

Then Is there a way to make sure this keeps occuring so that if i did
change the cell from a yes to a no that would be hidden and vice versa
if i changed a no to a yes would that then show?

This is what i thought could do it but to no success:

Private Sub Worksheet_Activate()

If C6 = No Then
Rows("6:6").Select
Selection.EntireRow.Hidden = True
End If

If C6 = Yes Then
Rows("6:6").Select
Selection.EntireRow.Hidden = False
End If

End Sub

Any Replies Would Be Appreciated,
Thankyou in advance

Ash

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding/Showing Rows on Cell H2 Change Rob Excel Discussion (Misc queries) 9 December 14th 08 01:44 AM
hiding or showing rows based on a cell value jordanpcpre Excel Discussion (Misc queries) 6 April 24th 08 04:14 PM
Showing or Hiding rows based on data validation list Magnet Peddler Excel Programming 4 April 12th 06 09:37 PM
userforms showing and hiding Laurin[_11_] Excel Programming 4 December 20th 05 06:07 PM
Showing and hiding columns BatMan Excel Programming 1 July 21st 04 06:11 PM


All times are GMT +1. The time now is 11:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"