【发布时间】:2020-07-05 16:03:46
【问题描述】:
我有这个代码:
Selection.InlineShapes.AddPicture FileName:=path & "\" & "image.png", LinkToFile:=False, SaveWithDocument:=True
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.InlineShapes.Item(1).ScaleHeight = 80
Selection.InlineShapes.Item(1).ScaleWidth = 80
但出现5941错误信息:
运行时错误“5941”请求的集合成员不存在。
我想设置特定的高度和宽度。
我该如何解决?
【问题讨论】:
-
查看我对您问题的回答并尝试重写代码! :)