LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default .onaction property for controls checkbox

Another alternative would be to change your code that creates the checkboxes to
use the checkboxes from the Forms toolbar.

You could delete the checkboxes from control toolbox tooblar and replace them
with checkboxes from the forms toolbar, too.

"excel_stuck via OfficeKB.com" wrote:

Thanks Nick-

That helps a lot to understand what's going on and why. I could not
understand why some features of the "controls" checkboxes were not available
for the "forms" checkboxes. You've explained that. The trouble has been
that I have created many check boxes within a macro and need to assign an
action to each of them. A generic routine assigned by .onaction would be
simple. Alternatively, a _Click event would work if the number of checkboxes
was fixed, but, unfortunately, this is not the case. It sounds from Tom's
email that my best option will be to create the subroutines with code (as the
check boxes get created), which seems a little awkward. I'll give that a try.
Thanks to all for your help.

NickHK wrote:
As I understand it:
The controls on "Controls Toolbox" are ActiveX or basically Windows
components that Excel can use. Windows "understands" these controls and
hence can raise numerous events (_Click, _Change, _MouseOver etc) when you
perform actions.
The controls on Forms are native to and controlled by Excel/Office. As
such, Windows does not know anything about them and consequently there are
no events for these. Only the single OnAction macro can be assigned.
From your description, you need to look at the _Click event of your
checkbox.

NickHK

Can anyone tell me how to set the .onaction property for a controls checkbox?
I can do it for a forms check box, but can't find how to do it for a forms
one. Is it possible? Thanks.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200608/1


--

Dave Peterson
 
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
Setting OnAction Property Fails Josh Sale Excel Programming 13 August 31st 05 09:02 PM
OnAction-property of cbbutton in VBE editor Frans van Zelm Excel Programming 8 July 7th 05 11:18 PM
Button Selection OnAction property Grant Reid Excel Programming 7 June 26th 04 03:39 AM
Find OnAction property Kemosabe Excel Programming 1 November 21st 03 03:34 PM


All times are GMT +1. The time now is 12:36 AM.

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"