RastaBananaa
New Member
- Joined
- Apr 23, 2018
- Messages
- 8
Hi All,
I am in need of some assistance again.
So I am trying to figure out a way to have excel look through a range of rows and stop when it finds a value. This value would be text, but any value would do.
The way I set excel which column to look at is by using:
Cells.Find(what:="OwnedByCustomer", after:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
ActiveCell.Offset(1, 0).Select
The above finds the particular text and then moves to the row below that text. For some sheets I might have a few rows(unknown amount of rows) in this particular column which contain no data. So I need excel to look through all rows below from the current active cell and once it finds a value, stop looking further. Once the value is found, this value then needs to be copied (the copy part is the easy part)
Unfortunately, I cannot define a location of OwnedByCustomer column as this is dynamic.
Thanks in advance for your help.
RastaBananaa
I am in need of some assistance again.
So I am trying to figure out a way to have excel look through a range of rows and stop when it finds a value. This value would be text, but any value would do.
The way I set excel which column to look at is by using:
Cells.Find(what:="OwnedByCustomer", after:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
ActiveCell.Offset(1, 0).Select
The above finds the particular text and then moves to the row below that text. For some sheets I might have a few rows(unknown amount of rows) in this particular column which contain no data. So I need excel to look through all rows below from the current active cell and once it finds a value, stop looking further. Once the value is found, this value then needs to be copied (the copy part is the easy part)
Unfortunately, I cannot define a location of OwnedByCustomer column as this is dynamic.
Thanks in advance for your help.
RastaBananaa