PDA

View Full Version : Solved: Controls.Remove causes unexpected behavior



nst1107
01-24-2010, 01:36 PM
Does anyone know why using the Controls.Remove method would cause the controls toolbox to appear on a running userform?

lucas
01-24-2010, 01:40 PM
You don't show enough information for me to know.

Do you open the VBE with your code or select the userform?

My best question and the one I hope you responde to is, why are you removing controls on the fly?

nst1107
01-24-2010, 01:45 PM
Sorry, I knew that was way to brief, but I wasn't sure what information to include. It seems like a complicated problem and I'm afraid may be tied to API calls.

The controls are labels that are added and removed at run time to reflect changes made by the user in other areas of the form. So, no, I do not open the VBE with the code.

If you need to see the workbook, I can post it, but it's large.

lucas
01-24-2010, 01:48 PM
Why not just hide them and show them?

nst1107
01-24-2010, 02:06 PM
That would work.... Probably what I should have done in the first place.

nst1107
01-24-2010, 02:06 PM
Thanks.