Basic combobox question re setting values

G

Graeme

Hi,
I have a number of combobox's which I've created from the Forms toolbar and
they each have a macro assigned to them. The user just needs to select a
variable for each, but for demonstration purposes, I am trying to write
another macro which populates the combobox's with certain values. For
example, if the first combobox has an input range of A, B, C and D, and the
second combobox has an input range of 10, 20, 30 and 40, I am trying to get a
macro which automatically selects B and 40 for a scenario which I am trying
to demo.
Thank you in advance.
Graeme
 
V

Vergel Adriano

If you have your combo boxes linked to a cell, you can set the value of the
link cell with the correct index and the combobox will update. For example,
if your combo box 1 is linked to A1 and combo box 2 is linked to A2, you can
set A1 to 2 for "B" and A2 to 4 for "40".
 
G

Graeme

thank you

Vergel Adriano said:
If you have your combo boxes linked to a cell, you can set the value of the
link cell with the correct index and the combobox will update. For example,
if your combo box 1 is linked to A1 and combo box 2 is linked to A2, you can
set A1 to 2 for "B" and A2 to 4 for "40".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top