我想在 powerpoint 中创建一个 vba 宏,以便仅在当前幻灯片下显示进度条。进度条必须走 1 步(例如:1000 毫秒)。这是可能的?我已经从这个问题修改了这段代码,但它不能正常工作,因为我无法在当前幻灯片上绘制形状。
On Error Resume Next
With ActiveWindow.SlideShowWindow.View.Slide
For x = 1 To length
Set s = .Shapes.AddShape(msoShapeRectangle, _
0, ActivePresentation.PageSetup.SlideHeight - 12, _
x * ActivePresentation.PageSetup.SlideWidth / length, 12)
s.Fill.ForeColor.RGB = RGB(127, 0, 0)
s.Name = "ProgBar"
Threading.thread.sleep (1000)
Next x:
End With