LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 852
Default Check box linked cell = TRUE then J5 valued reduced by 1

On Friday, March 13, 2015 at 2:26:22 AM UTC-7, GS wrote:
Howard,
Just as "My Stuff" is not a legal, valid name for a control on
userforms, neither is it for AX controls on sheets. Do not confuse the
naming convention used for Forms controls with that of AX controls.

Think of it this way...

In the VBE code window:
In the left side dropdown:
General
CheckBox1
Worksheet

.,where in a userform code window...

In the left side dropdown:
General
CheckBox1
Userform

..where the concept of object hierarchy is identical. The AX control
Name property is not a string, but rather the 'codename' of the object
which can be used to ref the control in code.

Because Forms controls are Shape objects, they are an entirely
different species and handled same as any other Shape object.

So in your code sample...

Private Sub Stuff_Click()
' Handles code for an AX CheckBox control renamed "Stuff"
' Note that this name does not comply with any naming convention
standard

Dim cb As CheckBox

Set cb = Me.Stuff
Debug.Print cb.Caption
End Sub

..where the result should be "Stuff It" according to the info you
provide here.

--
Garry


Okay, thanks. A lot to understand with the activex controls. And a lot more can be done with them I assume.

I'll keep plodding along as I can.

Thanks, Howard
 
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
Code to display a true or false value in the cell containing a check box Dave K Excel Programming 1 August 26th 10 06:25 PM
Check Box linked cell offset Tracey Excel Programming 1 February 8th 10 08:59 AM
check box linked cell ranswert Excel Programming 5 March 26th 08 11:41 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
How to know the linked cell of a check box gm139[_2_] Excel Programming 3 February 5th 06 03:33 PM


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