Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy userform input to cells
i am writing a macro that has a series of userforms.
data entered into the first userform determines which userform you see next. i would like to copy the info entered into the comboboxes on that second userform back into my spreadsheet. I know how many comboboxes there are in each userform but i was hoping to generalize this routine, by using a for next loop. I based the following code on something i saw in a textbook: dim ctl as control for each ctl in me.controls if typename(ctl) = "combobox" then _ activecell = me.ctl.value activecell.offset(0,1).select next ctl but this doesn't work. the me.ctl.value isn't recognized. Is there some way i can iterate through these comboboxes w/o naming each one individually. thanks in advance for any help you might be able to provide. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
UserForm, with no input | Excel Discussion (Misc queries) | |||
How to copy a row with transposing to a column retaining links to input cells? | Excel Worksheet Functions | |||
Formatiing a input Box in a Userform | Excel Discussion (Misc queries) | |||
Userform Input Into Excel | Excel Programming | |||
Copy cells into another workbook with an input box to select the file | Excel Programming |