Pain in the ass macro Part 2

  • Thread starter Thread starter JesseK
  • Start date Start date
J

JesseK

I am creating a macro that contains a for loop that runs through colum
E and checks the value of each cell. If the cell equals 0 then it hide
the entire row and moves down to the next cell, and if it has a value i
does nothing and moves on. As I am writing the code I am getting erro
after error. Any help with this matter would be greatly appreciated
Thank yo
 
iLastRow = Cells(Rows.Count,"E").End(xlUp).Row
For i = 1 To iLastRow
If Cells(i,"E").Value = 0 Then
Rows(i)>Hidden = true
End If
Next i
 
Bob,

In order to help Jesse remain calm, I'll point out that in the 4th line you
meant:

Rows(i).Hidden = true

Doug

Bob Phillips said:
iLastRow = Cells(Rows.Count,"E").End(xlUp).Row
For i = 1 To iLastRow
If Cells(i,"E").Value = 0 Then
Rows(i)>Hidden = true
End If
Next i
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top