Hi there, going to try and explain this clearly because it can get confusing,
I have a user form which uses various lookup methods to auto fill data. But for this explanation lets say i am just looking at 2 combo boxes on the form; Descriptioncmb and PartNocmb
We are looking at the following two columns in a data sheet:
The Description on the userform is chosen through the ComboBox options, which in this brief description, there will just be one option (pipe). then PartNocmb needs to be filled based on the description set.
I've done this through the use of a VLOOKUP;
This works great, however we have now started to do conversions, meaning sometimes the part number me have a /5 on the end instead of a /3.
Is there a way to implement this to allow the option for a user to choose between the 1126/3 and 1126/5. I was thinking they could both be displayed in the PartNocmb and the user can select which one to use?
Hope that makes sense, really hard to explain!
I have a user form which uses various lookup methods to auto fill data. But for this explanation lets say i am just looking at 2 combo boxes on the form; Descriptioncmb and PartNocmb
We are looking at the following two columns in a data sheet:
The Description on the userform is chosen through the ComboBox options, which in this brief description, there will just be one option (pipe). then PartNocmb needs to be filled based on the description set.
I've done this through the use of a VLOOKUP;
VBA Code:
Dim MyTableArray As Range
Set MyTableArray = Sheets("Data").Range("A:B")
'vlookup
Me.PartNocmb = WorksheetFunction.VLookup(Me.Descriptioncmb, MyTableArray, 2, 0)
This works great, however we have now started to do conversions, meaning sometimes the part number me have a /5 on the end instead of a /3.
Is there a way to implement this to allow the option for a user to choose between the 1126/3 and 1126/5. I was thinking they could both be displayed in the PartNocmb and the user can select which one to use?
Hope that makes sense, really hard to explain!