|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 aa0077321 于 2015-11-26 17:18 编辑
- Sub test()
- Dim MyRange As Range
- Dim mycontrol As InlineShape
- Dim str1 As String
- Dim MyParagraph As Paragraph
- For Each MyParagraph In ActiveDocument.Paragraphs
- Set MyRange = MyParagraph.Range
- MyRange.Find.Execute findtext:="A、", Forward:=True
- If MyRange.Find.Found = True Then
- MyRange.MoveEnd Unit:=wdParagraph, Count:=1
- str1 = MyRange.Text
- MyRange.Delete
- Set mycontrol = ActiveDocument.Content.InlineShapes.AddOLEControl("Forms.OptionButton.1", MyRange)
- With mycontrol
- 此处想设置选择按钮的名称?组?caption 属性
- End With
- End If
- Next
- End Sub
复制代码 我想在代码里设置选择按钮属性,试了用".caption=str1 .name ="按钮1"“等方法都不行,求大神给指点下,网上找了半天也没找到~~~ |
|