I have an ActiveX Control check box located on Sheet1 called Checkbox4.
This checkbox has small procedures tied to it that run onced mark as being "selected" or "unselected" or "checked" and un-checked" (however you look at it).
And these small procedures runs just fine when the user does indeed click on the check box - BUT My current VBA code ISNT marking them as being true or false with simply:
orSheet1.Select CheckBox4 = FalseSheet1.Select CheckBox4 = True
I have this located within a if statment that uses the answer from a vbYesno message box.
Last edited by clemsoncooz; 01-23-2012 at 10:55 AM.
Hello clemsoncooz,
The syntax for ActiveX objects on a worksheet is a little more complex. This example will "check" the control. Set the value to false to clear the "check".
Worksheets("Sheet1").OLEObjects("CheckBox4").Object.Value = True
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Perfect! Thank you!
Last edited by clemsoncooz; 01-23-2012 at 10:54 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks