Hi,
I am trying to locate a specific row number using vba. I need it to be able to look at the contents of a combobox and search for this value in the worksheet and then return the row number that the function returns.
Once I have this value (lRow) I can use this as a cell reference
Using the below I get Run-time error 13 - Type mismatch
Many Thanks as always
Neil
I am trying to locate a specific row number using vba. I need it to be able to look at the contents of a combobox and search for this value in the worksheet and then return the row number that the function returns.
Once I have this value (lRow) I can use this as a cell reference
Using the below I get Run-time error 13 - Type mismatch
Code:
Private Sub CommandButton1_Click()
Dim lRow As Integer
lRow = Application.Match(ComboBox1.Value, Sheets("Trial Tracker").Range("A:A"), 0)
Cells(lRow, 14).Value = TextBox3.Value
Cells(lRow, 15).Value = TextBox4.Value
End Sub
Many Thanks as always
Neil