ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to Check a checkbox on spreadsheet from VB code (https://www.excelbanter.com/excel-programming/294555-how-check-checkbox-spreadsheet-vbulletin-code.html)

harinath

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

Bob Phillips[_6_]

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




harinath

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


All times are GMT +1. The time now is 10:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com