Hello all,
I got an userform named userform2 that displays Code and Productname in labels.
On this form is a button that passes through this Code and Productname;
This form is named; GelBMRProperties.
Now i would like that i can use the Code on this forum to look into worksheet "Products" and return values that are behind the corresponding Code number.
For example lblGelCodeR.Caption = 1000
In worksheet "Products" in column A it says 1000 and and column B it says 11. I would like to see that "11" back onto my userform.
I thought something with Vlookup but i don't know how to use that in VBA.
Can someone assist me?
I got an userform named userform2 that displays Code and Productname in labels.
On this form is a button that passes through this Code and Productname;
Code:
Private Sub UserForm_Initialize()
lblGelCodeR.Caption = UserForm2.commonVariable
lblProductNameR.Caption = UserForm2.commonVariable1
This form is named; GelBMRProperties.
Now i would like that i can use the Code on this forum to look into worksheet "Products" and return values that are behind the corresponding Code number.
For example lblGelCodeR.Caption = 1000
In worksheet "Products" in column A it says 1000 and and column B it says 11. I would like to see that "11" back onto my userform.
I thought something with Vlookup but i don't know how to use that in VBA.
Can someone assist me?