Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear all,
I've found a way to change the text *next to* a single checkbox on a worksheet with this code: Sub change() ActiveSheet.Shapes.Range(Array("Check Box 12")).Select Selection.Characters.Text = "any_new_text" End Sub But If there are many textboxes in a file, on different worksheets, there must be a way to address them all in one go. I also managed to read the 'name' and 'alternative text' of shapes with this code: Dim c As Shape For Each c In Worksheets(1).Shapes Debug.Print c.Name & " " & c.AlternativeText Next c End Sub I guess there must be a way to change the text (which appears not to be the properties 'Name' or 'Alternativetext') of all shapes, but can't get my head around it. Anyone who can? Regards, Dr |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help:Programmatically Adding Checkboxes with Captions | Excel Programming | |||
Programmatically add shapes to a selection | Excel Programming | |||
Programmatically add shapes to a selection | Excel Programming | |||
Removing Checkboxes Programmatically | Excel Programming | |||
Adding Checkboxes Programmatically | Excel Programming |