WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

macro to hide a row when a cell contains a value

 
   Home -> Office -> Worksheet Functions RSS
Next:  Projecting Revenues  
Author Message
InfoNeeded

External


Since: Nov 17, 2008
Posts: 1



(Msg. 1) Posted: Mon Nov 17, 2008 9:57 pm
Post subject: macro to hide a row when a cell contains a value
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I have an excel sheet that contains multiple rows. I want to be able to
hide/unhide the rows that contain "C" (complete) when there is a "C" in
column P when I click on the command button that contains the macro
Back to top
Login to vote
Gary''s Student

External


Since: Oct 01, 2005
Posts: 3613



(Msg. 2) Posted: Tue Nov 18, 2008 2:06 am
Post subject: RE: macro to hide a row when a cell contains a value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sub HideMe()
n = Cells(Rows.Count, "P").End(xlUp).Row
For i = 1 To n
If Cells(i, "P").Value = "C" Then
Rows(i).EntireRow.Hidden = True
End If
Next
End Sub

--
Gary''s Student - gsnu200814


"InfoNeeded" wrote:

> I have an excel sheet that contains multiple rows. I want to be able to
> hide/unhide the rows that contain "C" (complete) when there is a "C" in
> column P when I click on the command button that contains the macro
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET