Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi Good afternoon, i have the code below which doesnt work in the workseet, i have combobox and textbox in sheet1, and the data in sheet 2 the code below works if the combo/textbox was in the userform but it doesn't work if in the worksheet (sheet1) can you help me please.
Code:
Private Sub ComboBox4_AfterUpdate()
Dim Fnd As Range
Set Fnd = ThisWorkbook.Sheets("Sheet2").Range("A:A").Find(ComboBox4.Value, , , xlWhole, , , False, , False)
If Not Fnd Is Nothing Then
ComboBox2.Value = Fnd.Offset(, 9).Value
TextBox3.Value = Fnd.Offset(, 2).Value
End If
End Sub