Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Adding checkboxes programmatically to a worksheet

Sorry, my last message just went out of my hands.

I add some checkboxes to a worksheet where the user can check/uncheck for
one of two options. I set the default value to False. Now I cannot figure out
how to make the checkbox work since I cannot write the code Sub
Checkbox1_Click. How do I do that and how do I find and store the value (True
or False) in either a cell or in a variable.
--
Stef
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding checkboxes programmatically to a worksheet

Select the checkbox and right-click and choose Format Control
Select the Control tab and add a cell address to the Cell link dialog.
The value of the linked cell will change to TRUE or FALSE depending on
whether the check box is ticked or not. Use in functions like =IF(C1, then
else) where C1 is the cell containing the result.

"Stef" wrote in message
...
Sorry, my last message just went out of my hands.

I add some checkboxes to a worksheet where the user can check/uncheck for
one of two options. I set the default value to False. Now I cannot figure

out
how to make the checkbox work since I cannot write the code Sub
Checkbox1_Click. How do I do that and how do I find and store the value

(True
or False) in either a cell or in a variable.
--
Stef



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding checkboxes programmatically to a worksheet

Ben gave you the procedure for a check box from the forms toolbar. There is
also a control toolbox toolbar that has checkboxes. Which are you using as
the procedures are somewhat different for each.

--
Regards,
Tom Ogilvy

"Stef" wrote in message
...
Sorry, my last message just went out of my hands.

I add some checkboxes to a worksheet where the user can check/uncheck for
one of two options. I set the default value to False. Now I cannot figure

out
how to make the checkbox work since I cannot write the code Sub
Checkbox1_Click. How do I do that and how do I find and store the value

(True
or False) in either a cell or in a variable.
--
Stef



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
Adding to AutoComplete programmatically Jim McLeod Excel Programming 3 April 19th 04 05:29 PM
Adding comment programmatically Carl Rapson Excel Programming 3 February 26th 04 11:01 PM
Programmatically adding buttons to a worksheet (Shape Object) Phil Excel Programming 3 January 26th 04 03:51 PM
Removing Checkboxes Programmatically Mark D'Agosta Excel Programming 4 October 21st 03 03:57 PM
Adding Checkboxes Programmatically Mark D'Agosta Excel Programming 1 October 8th 03 03:20 AM


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