【发布时间】:2021-06-27 01:16:15
【问题描述】:
有什么方法可以使用 VBA 将 html 链接插入到文本框中?我创建了一个带有文本框的对话框,我想将文本转换为网络链接,然后将其插入文档中的文本框。
Dim WO_Box1 As Shape
Set WO_Box1 = ActiveDocument.Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, Left:=17, Top:=125, Width:=106.5, Height:=19)
WO_Box1.TextFrame.TextRange.Font.Name = "Tahoma"
WO_Box1.TextFrame.TextRange.Font.Size = "9"
WO_Box1.TextFrame.TextRange.Text = TextBox1.Text
【问题讨论】: