B
BigPig
Hi All,
I know how to find one value, but I want to find 2 values in two different
ranges. This is what I have so far...
For Each NewCell In NewRng
CheckData = NewCell
Set C =
Worksheets("Unliquidated").Columns("b").Find(what:=CheckData, _
LookIn:=xlValues, lookat:=xlWhole)
If Not C Is Nothing Then
Do lots of this
Else
Do some of that
End If
Next
I am trying to find a two values from a row of data, in another table which
is configured in the same way. I tried using an If statement where "Do lots
of this" is listed,
Worksheets("Unliquidated").Select
C.Select
If ActiveCell.Offset(0, 6).Text <> NewCell.Offset(0, 6).Text
Then
Do some of this
End If
What it did was if the value was found in C, then offset from the value
(0,6) compare it with the newcell.offset....and if it was not equal ..do some
of this.
It kind of worked, however there are multiple instances of the value that
CheckData is looking for, so the above script (just above this para),
evaluates the first row of data it comes across.
Again, I want to find 2 values simultaneously. These 2 values are on the
same row, but in different columns.
I hope you can read through my muddled description. Any help or suggestions
will be greatly appreciated.
Thanks.
I know how to find one value, but I want to find 2 values in two different
ranges. This is what I have so far...
For Each NewCell In NewRng
CheckData = NewCell
Set C =
Worksheets("Unliquidated").Columns("b").Find(what:=CheckData, _
LookIn:=xlValues, lookat:=xlWhole)
If Not C Is Nothing Then
Do lots of this
Else
Do some of that
End If
Next
I am trying to find a two values from a row of data, in another table which
is configured in the same way. I tried using an If statement where "Do lots
of this" is listed,
Worksheets("Unliquidated").Select
C.Select
If ActiveCell.Offset(0, 6).Text <> NewCell.Offset(0, 6).Text
Then
Do some of this
End If
What it did was if the value was found in C, then offset from the value
(0,6) compare it with the newcell.offset....and if it was not equal ..do some
of this.
It kind of worked, however there are multiple instances of the value that
CheckData is looking for, so the above script (just above this para),
evaluates the first row of data it comes across.
Again, I want to find 2 values simultaneously. These 2 values are on the
same row, but in different columns.
I hope you can read through my muddled description. Any help or suggestions
will be greatly appreciated.
Thanks.