kuroriposte
New Member
- Joined
- Jul 23, 2021
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hi i am looking to select a row in the sheet based on the text value appearing in a combobox from user forms.
Currently i have this code but it selects the entire sheet instead.
Private Sub cmdupdate_Click()
Dim rng As Range
Set rng = Range("A1", Range("A65536").End(xlUp))
For Each cell In rng
If cell.Value = items.Text Then
Rows.Select
End If
Next cell
End Sub
Currently i have this code but it selects the entire sheet instead.
Private Sub cmdupdate_Click()
Dim rng As Range
Set rng = Range("A1", Range("A65536").End(xlUp))
For Each cell In rng
If cell.Value = items.Text Then
Rows.Select
End If
Next cell
End Sub