How to search string in single line in excel? I have a row index in a long type variable.
Dim rowIndex As Long rowIndex = // some value being set here using some code.
Now I need to check if a specific value exists in the row, whoose index - rowIndex.
If there is a match, I need to get the index index of the first comparable cell.
I tried using the match function, but I don’t know how to pass the rowIndex variable instead of a range of cells.
Dim colIndex As Long colIndex = Application.Match(colName, Range("B <my rowIndex here>: Z <my rowIndex here>"), 0)
source share