Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change 'Caption' on ToggleButtons with VBA
Try:
Sub addToggles() Dim i As Integer For i = 0 To 1 With ActiveSheet.OLEObjects.Add("Forms.ToggleButton.1", _ Left:=1 + i * 73, Top:=243, Width:=72, Height:=30.75) .Object.Caption = IIf(i = 0, "Start Date", "End Date") End With Next End Sub Regards, Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change 'Caption' on ToggleButtons with VBA | Excel Programming | |||
Change 'Caption' on ToggleButtons with VBA | Excel Programming | |||
Change Caption of Button | Excel Programming | |||
How to change Button Caption? | Excel Programming | |||
change the value of togglebuttons | Excel Programming |