asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Good Day,
Is the any way to make below code to run more powerful?
If column A has huge datas as in ID number of clients when I type the ID number on textbox1 textbox2 doen't updating correctly, especially if the ID numbers has similar digits in it.
Many thanks.
Is the any way to make below code to run more powerful?
If column A has huge datas as in ID number of clients when I type the ID number on textbox1 textbox2 doen't updating correctly, especially if the ID numbers has similar digits in it.
Many thanks.
VBA Code:
Private Sub TextBox11_AfterUpdate()
On Error Resume Next
Dim ws As Worksheet, rngFind As Range
Set ws = ThisWorkbook.Sheets("LIST")
Set rngFind = ws.Range("a:a").Find(what:=Me.TextBox1.Value, MatchCase:=True)
If Not rngFind Is Nothing Then
Me.TextBox2.Value = rngFind.Offset(0, 1).Value
End If
End Sub