如何更改命令按钮颜色,PowerPoint VBA
How To Change CommandButton Color, PowerPoint VBA
我希望在单击命令按钮时将其颜色更改为黑色。我在 PowerPoint 中使用 VBA 进行编程。我已经试过了:
With ActivePresentation.Shapes("MyButton").Fill
.Color.RGB = RGB(0, 0, 0)
End With
当然,上面的代码应该运行点击。
提前致谢。
哇!我不敢相信我这么快就想到了这个!
这是有效的代码:
MyButton.BackColor = 0
它将背景颜色更改为黑色!
我希望在单击命令按钮时将其颜色更改为黑色。我在 PowerPoint 中使用 VBA 进行编程。我已经试过了:
With ActivePresentation.Shapes("MyButton").Fill
.Color.RGB = RGB(0, 0, 0)
End With
当然,上面的代码应该运行点击。
提前致谢。
哇!我不敢相信我这么快就想到了这个! 这是有效的代码:
MyButton.BackColor = 0
它将背景颜色更改为黑色!