Excel VBA高级编程:CommandButton 控件

发布: 2009-2-08 14:51  作者: webmaster  查看: 2003次 共有0条评论

:CommandButton 控件

CommandButton控件可以开始、中断或者结束一个进程。选取这个控件后,CommandButton显示按下的形状,所以有时也称之为下压按钮。

语法

CommandButton

说明

为了在CommandButton控件上显示文本,需要设置其Caption属性。可以通过单击CommandButton选中这个按钮。为了能够在按ENTER键时也选中命令按钮,需要将其Default属性设置为True。为了能够按ESC键时也选中CommandButton,则需要将CommandButtonCancel属性设置成True

 

相关阅读
大家对 Excel VBA高级编程:CommandButton 控件 的评论
最新PPT教程
最新评论
PPT问答