刚刚使用以下命令将图像粘贴到 VBA 中的 MS Word 中
wordApp.Selection.PasteSpecial DataType:=wdPasteMetafilePicture, Placement:=wdInLine
我的想法是向左移动一个字符,然后选择下一个对象,但我不知道该怎么做。
编辑:
好吧,这里有一些令人鼓舞的发展,使用以下行,我能够选择包含图像的段落,但我无法操纵它,因为它正在选择一个范围。有谁知道我如何固定选择中的图像?
wordApp.Selection.Expand wdParagraph
最佳答案
这是我使用的:
wordApp.Selection.Find.Execute replace:=2
wordApp.Selection.Expand wdParagraph
wordApp.Selection.InlineShapes(1).Select
关于vba - 如何选择刚刚通过 VBA 粘贴到 MS Word 的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7636645/