Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Turn Check box on?

I have a check box which I would like to turn on... or not turn off in some
code that I previously had turning off all check boxes in the sheet. Here is
the code.

With ActiveSheet
..CheckBoxes = False
End With
ActiveSheet.CBX_R3 = True
ActiveSheet.CBX_R4 = True

is it possible I have the checkbox name's wrong?

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Turn Check box on?

With ActiveSheet
..CheckBoxes = False
End With
ActiveSheet.CheckBoxes("CBX_R3") = True
ActiveSheet.CheckBoxes("CBX_R4") = True

"John" wrote:

I have a check box which I would like to turn on... or not turn off in some
code that I previously had turning off all check boxes in the sheet. Here is
the code.

With ActiveSheet
.CheckBoxes = False
End With
ActiveSheet.CBX_R3 = True
ActiveSheet.CBX_R4 = True

is it possible I have the checkbox name's wrong?

Thanks for your help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Turn Check box on?

You can also set/unset the value as follows:

objSheet.CheckBoxes(1).Value = 1 'Checked, 0-unchecked.

....

"John" wrote:

With ActiveSheet
.CheckBoxes = False
End With
ActiveSheet.CheckBoxes("CBX_R3") = True
ActiveSheet.CheckBoxes("CBX_R4") = True

"John" wrote:

I have a check box which I would like to turn on... or not turn off in some
code that I previously had turning off all check boxes in the sheet. Here is
the code.

With ActiveSheet
.CheckBoxes = False
End With
ActiveSheet.CBX_R3 = True
ActiveSheet.CBX_R4 = True

is it possible I have the checkbox name's wrong?

Thanks for your help!

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
Increase size of a Forms Check Box (click on to enter check mark) 718Satoshi Excel Discussion (Misc queries) 0 August 17th 07 01:52 AM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Turn numbers into words to automate check-writing TONY M Excel Discussion (Misc queries) 3 February 28th 07 08:31 PM
Turn numbers into words to automate check-writing Mike Excel Discussion (Misc queries) 0 February 28th 07 02:18 PM
Code to automatically turn on and turn off Track Changes John[_46_] Excel Programming 1 October 7th 03 02:22 AM


All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"