当前位置: 代码迷 >> PB >> PB ole excel屏蔽右键解决思路
  详细解决方案

PB ole excel屏蔽右键解决思路

热度:481   发布时间:2016-04-29 05:17:15.0
PB ole excel屏蔽右键
如何在PB里面ole EXCEL 对象屏蔽右键
Application.CommandBars("column").Controls(6).Enabled = False这是VBA写法,在PB怎么写?

------解决思路----------------------
没有环境,类似这样试试
oleobject ole_1,ole_2 
ole_1=ole_excel.Application.CommandBars("column") //ole_excel
ole_2=ole_1.Controls(6)
ole_2.Enabled=False
------解决思路----------------------
经过测试,以下代码可以

ole_1.object.application.CommandBars("cell").enabled = false
  相关解决方案