Use a variable to select an ActiveX control Checkbox by name (in Word from Excel)?

前端 未结 2 1581
忘掉有多难
忘掉有多难 2021-01-22 17:54

What is wrong with this line of code?

WordDoc.CheckBoxNum.Value = CheckBoxVal

To be clear, I am working with an ActiveX control \"Checkbox\".

2条回答
  •  悲哀的现实
    2021-01-22 18:22

    AFAIK, you can use:

    WordDoc.InlineShapes(CheckBoxNum).OLEFormat.Object.Value = CheckBoxVal
    

提交回复
热议问题