VBA не принимает переменные в кавычках, они используются для вставки строк.Переменные передаются без запятых.Как в коде ниже.
Используйте это:
Private Sub SearchButton_Click()
'Finds the last non-blank cell in a single row or column
Dim lRow As Long
Dim lCol As Long
'Find the last non-blank cell in column A(1)
lRow = Cells(Rows.Count, 1).End(xlUp).Row
'Find the last non-blank cell in row 1
lCol = Cells(1, "S").Column
Range(Cells(1, 1), Cells(lRow, lCol)).Select
End Sub