G
Guest
Hi guys need your expert help again.
I have created a form that takes a part number and looks this up in a range
and fills the remaining text boxes on the form. So far so good.
What I want to do is, if the user alters the data return this to the row
where I first looked up the original data.
I've searched through but can't find a way of doing it.
my code so far:
TextBox2.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 3, False)
TextBox3.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 2, False)
TextBox4.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 4, False)
TextBox5.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 5, False)
TextBox6.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 6, False)
Then button 2 would use more code to overwrite the old data with the new.
TIA
Stu
I have created a form that takes a part number and looks this up in a range
and fills the remaining text boxes on the form. So far so good.
What I want to do is, if the user alters the data return this to the row
where I first looked up the original data.
I've searched through but can't find a way of doing it.
my code so far:
TextBox2.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 3, False)
TextBox3.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 2, False)
TextBox4.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 4, False)
TextBox5.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 5, False)
TextBox6.Value = Application.VLookup(TextBox1.Value, Sheets("QKIT -
NET").Range("B2:G65536"), 6, False)
Then button 2 would use more code to overwrite the old data with the new.
TIA
Stu