G
Guest
I have a combo box that lists all standard sizes for an item we manufacture.
It is set to allow the user to input a value not on the list if they desire.
However, if they input their own size, I need to determine this, so I can
charge for a non-standard size.
Note that I am trying to make a generic VBA routine that I can use in both
Excel and AutoCAD, so I don't want to use any Excel specific commands. I have
populated my combo box with a command like this;
Dim StdSizes(100,100,100)
'Then I populate the array with inches, feet-inch, and meters for out
standard sizes
Combo1.Column() = StdSizes
I imagine I can use a Combo1_Change() event to determine when the user is
finished typing, and then compare the new value of the combo box to all the
values in the array to see if there are any matches.
Any other methods you can recommend?
Joe Dunfee
It is set to allow the user to input a value not on the list if they desire.
However, if they input their own size, I need to determine this, so I can
charge for a non-standard size.
Note that I am trying to make a generic VBA routine that I can use in both
Excel and AutoCAD, so I don't want to use any Excel specific commands. I have
populated my combo box with a command like this;
Dim StdSizes(100,100,100)
'Then I populate the array with inches, feet-inch, and meters for out
standard sizes
Combo1.Column() = StdSizes
I imagine I can use a Combo1_Change() event to determine when the user is
finished typing, and then compare the new value of the combo box to all the
values in the array to see if there are any matches.
Any other methods you can recommend?
Joe Dunfee