Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to Check a checkbox on spreadsheet from VB code

Please give some input on how to check/uncheck the checkbox which is placed o
a spreadsheet using VBA code

In my case when i right click the checkbox on spreadsheet it is displaying "Check Box 45"
can i use this to set the checkbox true or false in code..Is it correct

Thank
Harinath
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to Check a checkbox on spreadsheet from VB code

Hi Harinath,

Try this

ActiveSheet.CheckBoxes("Check Box 45").Value = True


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Harinath" wrote in message
...
Please give some input on how to check/uncheck the checkbox which is

placed on
a spreadsheet using VBA code.

In my case when i right click the checkbox on spreadsheet it is displaying

"Check Box 45" .
can i use this to set the checkbox true or false in code..Is it correct

Thanks
Harinath



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to Check a checkbox on spreadsheet from VB code

Hi bob

thanks a lot ..what you have sent is working out..

Once agai
Thank
Harinath
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
check a checkbox in a formula big t Excel Worksheet Functions 1 June 16th 05 06:32 PM
Error in code to Check Forms Checkbox Steph[_3_] Excel Programming 3 April 2nd 04 04:15 PM
Checkbox value X instead of check Todd Huttenstine Excel Programming 3 February 10th 04 03:22 AM
Button Enabling based on check in checkbox Todd Huttenstine[_2_] Excel Programming 2 November 25th 03 04:56 AM
Can't check ActiveX checkbox on worksheet onedaywhen Excel Programming 3 August 9th 03 02:34 AM


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