srschicago
Board Regular
- Joined
- Apr 14, 2017
- Messages
- 59
Hi guys
I want to enter a PartID(text) in userform TextBox1 and have the userform display an alternative PartID in TextBox2 and description in TextBox3. Sheet1 has PartID1, PartID2, and Description in column A, B, and C respectively. I have this code below which appears to have worked for someone else. But when I enter text into TextBox1, nothing updates/loads in TextBox2 & TextBox3. Why?
I want to enter a PartID(text) in userform TextBox1 and have the userform display an alternative PartID in TextBox2 and description in TextBox3. Sheet1 has PartID1, PartID2, and Description in column A, B, and C respectively. I have this code below which appears to have worked for someone else. But when I enter text into TextBox1, nothing updates/loads in TextBox2 & TextBox3. Why?
Code:
Private Sub PartID1_Change()
PartID2 = Application.VLookup(TextBox1.Value, Range("A1:C10000"), 2, 0)
TextBox2.Value = PartID2
Description = Application.VLookup(TextBox1.Value, Range("A1:C10000"), 3, 0)
TextBox3.Value = Description
End Sub