我完全是个新手。我想创建一个宏,以便将文件路径(在宏运行时)添加到文档末尾的文本框中。我在Mac上使用Word 2016。
我在其他线程上找到了帮助我理解如何创建文本框并处理其在文档中位置的代码,但我无法添加文件路径代码。
这就是我到目前为止想出来的:
Sub percorsofile2()
Dim Box As Shape
Set Box = ActiveDocument.Shapes.AddTextbox( _
Orientation:=msoTextOrientationHorizontal, _
Left:=50, Top:=50, Width: