I can't get MATCH to work, please help! I keep getting error 438 at the last line... With only one data point after the header defined, the 'row' value becomes 2, and the loc gets set as "A1:A2".
Thanks in advance!
Dim loc As String
Dim row As Integer
Dim value As Integer
'Get current max rows in table
row = Cells.CurrentRegion.Rows.count
'Define the range as being all of A column to end of data
loc = "A1:A" & row
'lookFor is defined previously as some value to search for
value = ActiveSheet.Match(lookFor, ActiveSheet.range(loc), 0)