PowerPoint VBA宏出现运行时错误448:找不到命名参数

PowerPoint VBA宏出现运行时错误448:找不到命名参数,vba,powerpoint,Vba,Powerpoint,我正在尝试创建一个PowerPoint 2010 VBA宏,以便在每张幻灯片中添加一个文本框。 但是,使用来自的命令甚至不起作用 Set myDocument = ActivePresentation.Slides(1) myDocument.Shapes.AddTextbox(Type:=msoTextOrientationHorizontal, _ Left:=100, Top:=100, Width:=200, Height:=50).TextFrame _ .TextRange.Text

我正在尝试创建一个PowerPoint 2010 VBA宏,以便在每张幻灯片中添加一个文本框。 但是,使用来自的命令甚至不起作用

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

文档有误还是我遗漏了什么?

类型:=
替换为
方向:=

,修复了它,谢谢!我通知了MSDN,希望他们能在文档中修复它。这在我找到它的VBA IDE(即Intellisense工具提示)中是正确的。