LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Can't check ActiveX checkbox on worksheet

I'm trying to set the values of ActiveX checkboxes that are on a
worksheet.

Here's my code:

For Each ctl In Sheet1.OLEObjects
If TypeOf ctl.Object Is MSForms.CheckBox Then
ctl.Object.Value = True
End If
Next

If I go back and programmatically check the value properties (i.e. in
the Immediate window) they are confirmed as being set to true. The
problem is the checkboxes looks unchecked i.e. there are no ticks!

Anyone know what's going wrong? I'm using Excel2002 and Excel2003
beta.

Thanks.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing an activex checkbox control Blue Max Excel Worksheet Functions 2 December 13th 08 10:29 PM
How do I setup a cell in Excel as a checkbox w/o a form/activex c. Arno Rite Excel Discussion (Misc queries) 15 November 27th 06 08:50 PM
How can I protect a worksheet but still use ActiveX check-boxes? John Ewald Excel Discussion (Misc queries) 0 February 22nd 06 04:30 PM
format an entire column to contain checkbox activex control blunoob New Users to Excel 1 December 19th 05 02:07 PM
Can you filter on an ActiveX checkbox in Excel Liz Excel Discussion (Misc queries) 1 August 13th 05 12:29 AM


All times are GMT +1. The time now is 05:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"