Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Good morning.
In my work the column D is populated by a word, for example "Europe", a lot of times.
I need a vba code in order to find - and select - the last cell of that column populated by "Europe".
My attempt is just a manual operation recorded by the macro recorder, now I need a help for bigger files.
Thank's.
In my work the column D is populated by a word, for example "Europe", a lot of times.
I need a vba code in order to find - and select - the last cell of that column populated by "Europe".
My attempt is just a manual operation recorded by the macro recorder, now I need a help for bigger files.
Thank's.
Code:
Sub find_last()
Columns("D:D").Select
Cells.Find(What:="europe", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Cells.FindNext(After:=ActiveCell).Activate
Cells.FindNext(After:=ActiveCell).Activate
End Sub
Last edited: