BookmarkSubscribeRSS Feed
Charles_Liu
Calcite | Level 5
How to add the value list in some column with the ods excel,like the checkbox. or is there another way to get it?
1 REPLY 1
Oligolas
Barite | Level 11

Hi,

you could create and run a vba macro from SAS to do this.

 

vba code

Private Sub ActX_Add_CheckBox_Ex1()
    Sheets("Sheet1").CheckBoxes.Add(Left:=Range("E1").Left, Top:=Range("E1").Top, Width:=Range("G1").Width, Height:=Range("E1").Height).Select
    With Selection
        .Caption = "Checkbox XYZ"
    End With
End Sub

HowTo 

________________________

- Cheers -

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 644 views
  • 0 likes
  • 2 in conversation