我正在尝试创建一个 PowerPoint 2010 VBA 宏来向每张幻灯片添加一个文本框。 但是,使用 MSOffice documentation to create a text box 中的命令甚至不起作用。
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes.AddTextbox(Type:=msoTextOrientationHorizontal, _
Left:=100, Top:=100, Width:=200, Height:=50).TextFrame _
.TextRange.Text = "Test Box"
这会返回
Run-time error '448':
Named argument not found
文档是否错误或者我遗漏了什么?
最佳答案
将 Type:=
替换为 Orientation:=
关于vba - PowerPoint VBA 宏给出运行时错误 448 : Named argument not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30875342/