Thanks, Keith.
Unfortunately, that produced an error message no matter where I entered it;
I tried the worksheet code sheet ["sheet1(test)"], the workbook code sheet
("thisworkbook"), or a module. (To test, I set up a one sheet test file with
a single list box.)
In all cases, I received the same error: "Run-time error '424': Object
Required".
I believe this error is tied to the difference between 2003 and 2007. In
2003 (where I tried your code and it worked), the form controls behave
exactly the way ActiveX form controls work in 2007, leading me to believe
they are the same. Basic form controls in 2007 appear to be a different beast
(you don't get a Properties dialog with all the details like you do with
2003/ActiveX controls, for example). So, I don't think examples from 2003
aren't going to help me, unfortunately.
To answer your direct questions: my code is contained in modules. The code
is executed via a linked macro/vba code contained in a module when the TRUE
setting of a checkbox Form Control occurs. I want to control the population
of the listbox based on the TRUE of FALSE setting of the checkbox. Finally,
all data and objects are on the same sheet (just waaaay off to the right).
To everyone reading this: I'm still looking for help!
|