Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Trouble w/ ActiveX Controls (no userform) Excel 2002.
Hi all,
I have a spreadsheet that is constantly populating combo boxes (ActiveX) whenever a checkbox is clicked or some other event occurs. The combo boxes are populated in modules using the .AddItem method upon the opening of the workbook, and upon a checkbox = true click event. The issue arises that whenever I close the workbook the combo box unpopulates and forgets the user selection that was made. When the workbook is saved I want it to remember the value that the user last selected in each combo box and to avoid the run time error 1004. Often times the combo box text property is blank and doesn't contain anything because it doesn't apply to the project. Please help me determine the best way to accomplish this. I have 30 combo boxes I need to do this for. Thanks in advance! Example of what I have done below. This errors out the varBatesNumberingChange line. I can't figure out how to fix it. Public Sub cboBatesNumbering_Change() Dim varBatesNumberingChange As Variant varBatesNumberingChange = Sheets ("Input").cboBatesNumbering.Text If Not IsNumeric(varBatesNumberingChange) = True And varBatesNumberingChange < "" Then Range("Input_cboBatesNumbering_choice").Value = Sheets("Input").cboBatesNumbering.Text Application.ScreenUpdating = True Else Range("Input_cboBatesNumbering_choice").Value = "" Application.ScreenUpdating = True End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Activex controls in Excel 2003 | Excel Worksheet Functions | |||
ActiveX Controls vs Form Controls | Excel Discussion (Misc queries) | |||
Help with Excel ActiveX listbox controls | Excel Discussion (Misc queries) | |||
Saving Excel with ActiveX controls | New Users to Excel | |||
ActiveX Controls on Excel sheets | Excel Programming |