ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Make a Change to Code (https://www.excelbanter.com/excel-programming/311954-make-change-code.html)

Steved[_3_]

Make a Change to Code
 
Hello From Steved

Set FoundCell = Sh.Columns(1).Find( _
what:="2220")

At the moment the Above only finds a single Value.

Can I expand it to find 3 Value's in the same row please.
The "2220" Value is in Col A But Value "267"and "6.00"
is between Col B and Col AK in the same Row.

Set FoundCell = Sh.Columns(1).Find( _
what:="2220","267","6.00")

Thankyou.

Otto Moehrbach[_6_]

Make a Change to Code
 
No, you can't do that. What you can do is use the Find statement you have
to find the first value, then get the row of that first value, then use two
subsequent Find statements to search that one row to find the other two
values.
HTH Otto
"Steved" wrote in message
...
Hello From Steved

Set FoundCell = Sh.Columns(1).Find( _
what:="2220")

At the moment the Above only finds a single Value.

Can I expand it to find 3 Value's in the same row please.
The "2220" Value is in Col A But Value "267"and "6.00"
is between Col B and Col AK in the same Row.

Set FoundCell = Sh.Columns(1).Find( _
what:="2220","267","6.00")

Thankyou.




Steved[_3_]

Make a Change to Code
 
Thanks Otto


-----Original Message-----
No, you can't do that. What you can do is use the Find

statement you have
to find the first value, then get the row of that first

value, then use two
subsequent Find statements to search that one row to find

the other two
values.
HTH Otto
"Steved" wrote in

message
...
Hello From Steved

Set FoundCell = Sh.Columns(1).Find( _
what:="2220")

At the moment the Above only finds a single Value.

Can I expand it to find 3 Value's in the same row

please.
The "2220" Value is in Col A But Value "267"and "6.00"
is between Col B and Col AK in the same Row.

Set FoundCell = Sh.Columns(1).Find( _
what:="2220","267","6.00")

Thankyou.



.



All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com