Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Correct me if I'm wrong but...
Shouldn't...
For i = 31 To 1000 If .Cells(i, 21).Value = "0" And .Cells(i, 22).Value = "0" Then ..Cells(i, 1).EntireRow.Hidden = True End If Next i hide each row where the values for columns "U" ANd "V" equal zero? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Correct me if I'm wrong but...
For i = 31 To 1000
If .Cells(i, 21).Value = 0 And .Cells(i, 22).Value = 0 Then .Rows(i, 1).Hidden = True End If Next i -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stephen" wrote in message ... Shouldn't... For i = 31 To 1000 If .Cells(i, 21).Value = "0" And .Cells(i, 22).Value = "0" Then .Cells(i, 1).EntireRow.Hidden = True End If Next i hide each row where the values for columns "U" ANd "V" equal zero? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Correct me if I'm wrong but...
If .Cells(i, 21).Value = "0" And .Cells(i, 22).Value = "0" Then
Unless you have columns U and V formatted as text, you would need to remove the quote marks from the zeros. It worked OK for me once I did that. "Stephen" wrote: Shouldn't... For i = 31 To 1000 If .Cells(i, 21).Value = "0" And .Cells(i, 22).Value = "0" Then .Cells(i, 1).EntireRow.Hidden = True End If Next i hide each row where the values for columns "U" ANd "V" equal zero? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Fill down produces correct formula but wrong answer | Excel Worksheet Functions | |||
Converting Wrong Time Value to Correct One | Excel Discussion (Misc queries) | |||
Formula correct, answer wrong | Excel Discussion (Misc queries) | |||
Excel opens correct view - web (used frontpg) opens it wrong | Excel Discussion (Misc queries) | |||
Formula Result Correct but value in the cell is wrong | Excel Worksheet Functions |