ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   checkbox property (https://www.excelbanter.com/excel-programming/405152-checkbox-property.html)

ranswert

checkbox property
 
How do I write a procedure that selects a checkbox within a range of cells so
that I can change the cell that it is linked to and also change the name?
Thanks

JLGWhiz

checkbox property
 
I copied this from the VBA help file.

This example adds a check box to worksheet one and links the check box value
to cell A1.

With Worksheets(1)
Set cb = .Shapes.AddFormControl(xlCheckBox, 10, 10, 100, 10)
cb.ControlFormat.LinkedCell = "A1"
End With



"ranswert" wrote:

How do I write a procedure that selects a checkbox within a range of cells so
that I can change the cell that it is linked to and also change the name?
Thanks



All times are GMT +1. The time now is 05:22 PM.

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