[英]Ms Word Vba Command Button Insert Text on Word Doc
on click of the Command Button on MS WORD VBA FORM, a specific Text has to be inserted on the same MS Word Document on the place where the blinking cursor/Selection cursor is placed.单击 MS WORD VBA FORM 上的命令按钮,必须在同一 MS Word 文档中放置闪烁光标/选择光标的位置插入特定文本。
can someone place help me.有人可以帮我吗。
Private Sub CommandButton1_Click()
Me.Hide
With ActiveDocument.ActiveWindow.Selection
.TypeText Text:="Your text here"
End With
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.