如何选择刚刚通过 VBA 粘贴到 MS Word 的图像

Bil*_*ill 5 vba ms-word

刚刚使用以下命令将图像粘贴到 VBA 中的 MS Word 中

wordApp.Selection.PasteSpecial DataType:=wdPasteMetafilePicture, Placement:=wdInLine
Run Code Online (Sandbox Code Playgroud)

我的想法是向左移动一个字符,然后选择下一个对象,但我不知道该怎么做。

编辑:

好吧,这里有一些令人鼓舞的发展,使用以下行,我能够选择包含图像的段落,但我无法操纵它,因为它正在选择一个范围。有谁知道我如何固定选择中的图像?

wordApp.Selection.Expand wdParagraph
Run Code Online (Sandbox Code Playgroud)

Bil*_*ill 1

这是我使用的:

wordApp.Selection.Find.Execute replace:=2
wordApp.Selection.Expand wdParagraph
wordApp.Selection.InlineShapes(1).Select
Run Code Online (Sandbox Code Playgroud)