ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Morning,
I have a userform with values in a Listbox.
The code below is on a command button.
I would select a value in the Listbox & run the code on the command button to then be taken to that selection on the worksheet of which the range for it is J6 then down the page.
The code is nearly correct BUT doesnt select the value in column J for some reason.
Do you see why this might be.
Thanks
I have a userform with values in a Listbox.
The code below is on a command button.
I would select a value in the Listbox & run the code on the command button to then be taken to that selection on the worksheet of which the range for it is J6 then down the page.
The code is nearly correct BUT doesnt select the value in column J for some reason.
Do you see why this might be.
Thanks
Rich (BB code):
Private Sub SelectAndGo_Click()
With ThisWorkbook.Worksheets("DATABASE")
Dim data As Variant
data = .Range("J6:J" & .Cells(.Rows.Count, "J").End(xlUp).Row).Value
End With
Cells.Find(What:=ListBox1.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
Unload HondaKeyCode
End Sub