#1   Report Post  
 
Posts: n/a
Default iterating checkboxes

I've got a few checkboxes in a sheet, "CheckBox1" through "CheckBox3".

I can do this:

c = CheckBox1.Value
etc.

But how would I iterate over them? Like, if I could do this:

c = CheckBox(1).Value

Things like this don't work:

c = ActiveSheet.Shapes("CheckBox1").Value

  #2   Report Post  
Dimple Wathen
 
Posts: n/a
Default

just found an answer....

For i = 1 to 3
CheckBoxStr = "CheckBox" + CStr(i)
c = ActiveSheet.OLEObjects(CheckBoxStr).Object.value
...
next

how very odd...

--
pls don't email me. i won't read it.

Reply
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
CheckBoxes Laur Excel Discussion (Misc queries) 2 March 22nd 05 07:40 PM
Checkboxes Es Excel Discussion (Misc queries) 1 March 14th 05 02:07 PM
is it possible to insert checkboxes in an excel spreadsheet? analiese f Excel Discussion (Misc queries) 1 March 4th 05 11:07 PM
Checkboxes chuck Excel Discussion (Misc queries) 1 January 25th 05 03:48 AM
How do I use checkboxes correctly? erikeve Excel Discussion (Misc queries) 1 January 15th 05 06:31 PM


All times are GMT +1. The time now is 08:29 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"