(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
(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
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