Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Newbie Shapes Question

I have a spreadsheet with checkboxes (shapes) which I can refer to in code
using (for example)

ActiveSheet.Shapes("Check Box 19")

Can I derive the checkbox's state (true/false) using code or is it just a
dumb shape?

Thanks.

Keith.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Newbie Shapes Question

Keith,

You could link a cell to the checkbox and check the value of that cell
instead. You can do that by right-clicking on the checkbox then click on
"Format Control". Go to the Control tab and specify a cell in the cell-link
field.

If you don't want to link the checkbox to a cell, you can also get the value
of the CheckBox by using either one of the following:

ActiveSheet.CheckBoxes("Check Box 19").value

or

ActiveSheet.Shapes("Check Box 19").OleFormat.Object.Value




--
Hope that helps.

Vergel Adriano


"Keith Wilby" wrote:

I have a spreadsheet with checkboxes (shapes) which I can refer to in code
using (for example)

ActiveSheet.Shapes("Check Box 19")

Can I derive the checkbox's state (true/false) using code or is it just a
dumb shape?

Thanks.

Keith.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Newbie Shapes Question

"Vergel Adriano" wrote in message
...
Keith,

You could link a cell to the checkbox and check the value of that cell
instead. You can do that by right-clicking on the checkbox then click on
"Format Control". Go to the Control tab and specify a cell in the
cell-link
field.

If you don't want to link the checkbox to a cell, you can also get the
value
of the CheckBox by using either one of the following:

ActiveSheet.CheckBoxes("Check Box 19").value

or

ActiveSheet.Shapes("Check Box 19").OleFormat.Object.Value




--
Hope that helps.


It certainly does, many thanks indeed.

Regards,
Keith.


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
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
CSV Newbie Question [email protected] Excel Programming 5 August 21st 05 01:20 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Shapes question JackJ Excel Programming 1 September 25th 04 09:09 PM


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