您的位置:首页 > 编程语言 > VB

microstation中,如何利用VBA在菜单栏目增加一些button和屏蔽一些button

2006-09-18 15:51 513 查看
1.代码
Application.CommandBars.Add "InsertPrice", msoBarTop
Application.CommandBars("InsertPrice").Visible = True
Application.CommandBars("InsertPrice").Protection = msoBarNoMove + msoBarNoCustomize
Set Control1 = Application.CommandBars("InsertPrice").Controls.Add(msoControlButton, 1)
Control1.Caption = "数据导入"
Control1.OnAction = "insertData"
Control1.Visible = True
2.手工
Workspace->Customize->MenuBar
Key IN:VBA RUN MAIN(BasMain.checkIn)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: