展开全部
演示代码:
Private Sub Command1_Click()
Dim objWordApp As Object
Const wdFieldFormula = 49
Set objWordApp = GetObject(, "Word.Application")
objWordApp.Selection.Fields.Add objWordApp.Selection.Range, _
wdFieldFormula, _
"{EQ \b \bc\{ (\r(3,x))}", _
False
Set objWordApp = Nothing
End Sub
演示效果:
更多域代码请参考:
http://office.microsoft.com/zh-cn/word-help/field-codes-eq-equation-field-HP005186148.aspx
追答
首先切换域代码(光标放到 EQ 域):
Selection.Fields.ToggleShowCodes
然后(光标依然在 EQ 域):
Selection.InlineShapes.AddPicture "D:\1.jpg", False, True
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询