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 -

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 810 views
  • 0 likes
  • 2 in conversation