Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
Suppose I have a filtered database ...
How would I go about finding the row number within the filtered data of a specific value represented by variable 'intseg' in column 5. For example, what row (variable 'intrw'), if any, is intseg = 2 in? If it doesn't exist in any row, variable 'intrw' needs to equal 0.
VBA Code:
Dim intseg as integer
Dim intrw as integer
With ws_segments
If .AutoFilterMode = True Then .AutoFilterMode = False
.Range("A1").AutoFilter Field:=32, Criteria1:=corrval
End With
How would I go about finding the row number within the filtered data of a specific value represented by variable 'intseg' in column 5. For example, what row (variable 'intrw'), if any, is intseg = 2 in? If it doesn't exist in any row, variable 'intrw' needs to equal 0.