Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

how do I hide rows in excel based on values input on sheet ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tbo - 21 Mar 2006 17:06 GMT
need to hide certain rows based on values entered elsewhere on the sheet -
please assist
ph8 - 21 Mar 2006 17:12 GMT
in VBA:

Code
-------------------
   If Cells(1, "A") = "ValueToTestFor" Then
 Cells(2, "B").EntireRow.Hide = True
 Else
 Cells(2, "B").EntireRow.Hide = False
 End I
-------------------

Replace the cell addresses with the respective cells
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.