The information in this article applies to:
SYMPTOMSIn a Visual Basic module in Microsoft Excel, when you use the Value property to set the property of a control, or return the property of a control contained on a worksheet or dialog sheet, you receive the following error message if the control is grouped where <controlname> is the name of the control such as OptionButtons, or CheckBoxes. Note that <controlname> in the error message may also be DrawingObjects, if you use the DrawingObjects method to return the control object. CAUSE
This behavior is by design in Microsoft Excel. When you select multiple
controls, and group them, the controls are now treated as a single object.
This makes it easier to move the controls, because they move together, but
you can no longer modify the properties of an individual control.
WORKAROUNDTo avoid this behavior, you must ungroup the control before you can set the properties of an individual control, such as setting the value of an Option Button to selected, or the value of a Check Box to clear (unchecked). MORE INFORMATIONFor more information about verifying the value of a check box, query on the following words in the Microsoft Knowledge Base: value and check and box and xlon REFERENCES
"Visual Basic User' Guide," version 5.0, Chapter 11, "Controls and
Dialog Boxes"
Value Property Additional query words: 1.00 err msg drawing
Keywords : |
Last Reviewed: October 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |