AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
I want to use this is a Function and get the last row number where the first 4 chars in column "Type" are "1990". Format is General
I'm trying this but get subscript out of range
= ThisWorkbook.Sheets("Sheet1").Range("Type").Find(what:="1990*", LookAt:=xlPart, lookIn:=xlValues, SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Thanks for any correction.
I'm trying this but get subscript out of range
= ThisWorkbook.Sheets("Sheet1").Range("Type").Find(what:="1990*", LookAt:=xlPart, lookIn:=xlValues, SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Thanks for any correction.