当我的CommandButton被点击时,我希望它的颜色变为黑色。我是用VBA在PowerPoint中编程的。我已经尝试过了:
With ActivePresentation.Shapes("MyButton").Fill
.Color.RGB = RGB(0, 0, 0)
End With
当然,上面的代码应该在单击时运行。
提前谢谢。
发布于 2018-06-12 04:04:55
哇!我真不敢相信我这么快就想到了这个!这是可以工作的代码:
MyButton.BackColor = 0
它将背景颜色更改为黑色!
https://stackoverflow.com/questions/50805136
复制相似问题