【发布时间】:2015-10-19 23:41:13
【问题描述】:
我刚刚开始学习 VBA for PowerPoint 编程(大约 30 分钟前)。谁能帮我解决以下问题?:
我想要一个循环遍历所有幻灯片注释并将文本更改为白色的宏
(我知道有非宏替代品,但第三方软件(Articulate)要求它通过宏来完成......长篇大论)。
这是我目前所拥有的:
Sub changenotestowhite()
Dim osld As Slide
Dim oshp As Shape
Dim strNotes As String
For Each osld In ActivePresentation.Slides
For Each oshp In osld.NotesPage.Shapes
oshp.TextFrame.TextRange.Font.Color = vbWhite
Next oshp
Next osld
End Sub
我收到错误消息“运行时错误:指定的值超出范围。”
谢谢!
乔
【问题讨论】:
标签: vba powerpoint