PC Review


Reply
Thread Tools Rate Thread

Correct me if I'm wrong but...

 
 
Stephen
Guest
Posts: n/a
 
      7th Dec 2007
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      7th Dec 2007
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" <(E-Mail Removed)> wrote in message
news:773E886F-4470-4F37-A6A6-(E-Mail Removed)...
> 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 With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      7th Dec 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dns name all wrong - help me to correct it without re-installing Edward Letendre Microsoft Windows 2000 DNS 1 1st Aug 2009 04:41 PM
Correct me if I'm wrong, but... =?Utf-8?B?REFCQVJPTg==?= Windows XP Photos 2 6th Jul 2006 11:49 PM
Correct me if I'm wrong but..... =?Utf-8?B?TG9ubmll?= Windows XP General 4 4th Feb 2006 11:12 PM
Correct me if I am wrong here =?Utf-8?B?Sm9l?= Microsoft VB .NET 4 10th Mar 2004 04:38 PM
Correct me if I'm wrong. jona Computer Hardware 2 24th Jan 2004 03:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.