PC Review


Reply
Thread Tools Rate Thread

cycle through checkboxes

 
 
Ryan Ragno
Guest
Posts: n/a
 
      23rd Jun 2008
Hi,

I currently have 18 checkboxes down 18 rows, each with thier own linked cell
in a seperate column (which is hidden from the user) that my macro's use to
read or change the state of any checkbox.

This linking works when i click on the checkbox (i.e. when i click on any
checkbox, to toggle it's state, the linked cell changes also), but when i use
a macro to change the state of the linked cell, the checkbox's state doesn't
change :S

Once i use my cursor to change the checkbox's state by hand twice, the
linked cell begins to change on cursor clicks again. What am i doing wrong?
if that question cannot be answered could someone tell me how to cycle
through each checkbox so that i can toggle thier states manually?

Thank you SO much (in advance),
Ryan
 
Reply With Quote
 
 
 
 
cush
Guest
Posts: n/a
 
      23rd Jun 2008
You might try something like this:

Name your Checkboxes cb1 thru cb18

then use code like this:

Dim i as Integer

For i = 1 to 18
If activesheet.Shapes("cb"&i) then
'Do stuff
Else
'Do something else
End if
Next i





"Ryan Ragno" wrote:

> Hi,
>
> I currently have 18 checkboxes down 18 rows, each with thier own linked cell
> in a seperate column (which is hidden from the user) that my macro's use to
> read or change the state of any checkbox.
>
> This linking works when i click on the checkbox (i.e. when i click on any
> checkbox, to toggle it's state, the linked cell changes also), but when i use
> a macro to change the state of the linked cell, the checkbox's state doesn't
> change :S
>
> Once i use my cursor to change the checkbox's state by hand twice, the
> linked cell begins to change on cursor clicks again. What am i doing wrong?
> if that question cannot be answered could someone tell me how to cycle
> through each checkbox so that i can toggle thier states manually?
>
> Thank you SO much (in advance),
> Ryan

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a graph with 2-cycle X 3-cycle log-log graph paper? Charles A. Wilson Microsoft Excel Charting 1 17th Dec 2009 03:03 AM
Cycle through all Checkboxes on a worksheet =?Utf-8?B?dGhlMDBzbm9vcHk=?= Microsoft Excel Programming 1 31st Jul 2007 11:22 PM
How do I keep result from 1 iteration cycle to use in next cycle? =?Utf-8?B?c2dsOGFrbQ==?= Microsoft Excel Misc 0 27th Jul 2006 08:28 PM
Generalising macro 2 cycle thru checkboxes in frames/pages on User =?Utf-8?B?TEZORmFu?= Microsoft Excel Programming 0 7th Mar 2005 03:43 PM
Cycle through checkboxes =?Utf-8?B?WnNvbHQ=?= Microsoft Excel Programming 6 25th Mar 2004 12:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 AM.