C
Clare
I have a userform which needs to display a list of items which can be
selected via checkboxes, but the users also need to be able to enter 3
quantities for any item they actually select i.e.
Selected Fruit Qty1 Qty2 Qty3
Yes Apple 2 3 1
No Peach 0 0 0
Yes Mango 5 0 3
(where Yes/No is a checkbox)
I have created a listbox on the userform and set the List Style to Option
and MultiSelect to Multi so I get checkboxes but I don’t know how to extend
it to include the extra 3 Quantity columns and relate them to the individual
list items. The users need to be able to type the required quantities if they
select the item, but if the item is not chosen, the Qty columns should
display a zero, or dash or something similar and should be disabled. Is a
listbox the correct way to approach this, or should I be using some other
method?
Ultimately the overall price will then be calculated for each of the items
they have selected and a document is produced (in Word 2003) containing the
appropriate text, images and pricing. I know how to do the document
generation but would really appreciate some assistance with adding the
related quantity boxes to the dialog box.
selected via checkboxes, but the users also need to be able to enter 3
quantities for any item they actually select i.e.
Selected Fruit Qty1 Qty2 Qty3
Yes Apple 2 3 1
No Peach 0 0 0
Yes Mango 5 0 3
(where Yes/No is a checkbox)
I have created a listbox on the userform and set the List Style to Option
and MultiSelect to Multi so I get checkboxes but I don’t know how to extend
it to include the extra 3 Quantity columns and relate them to the individual
list items. The users need to be able to type the required quantities if they
select the item, but if the item is not chosen, the Qty columns should
display a zero, or dash or something similar and should be disabled. Is a
listbox the correct way to approach this, or should I be using some other
method?
Ultimately the overall price will then be calculated for each of the items
they have selected and a document is produced (in Word 2003) containing the
appropriate text, images and pricing. I know how to do the document
generation but would really appreciate some assistance with adding the
related quantity boxes to the dialog box.