以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  BUG收集  (http://foxtable.com/bbs/list.asp?boardid=12)
----  帮助中PerformClick 的错误  (http://foxtable.com/bbs/dispbbs.asp?boardid=12&id=5250)

--  作者:yangming
--  发布时间:2009/12/3 14:42:00
--  帮助中PerformClick 的错误
错误:
 

Dim btn As RibbonMenu.Button
btn = RibbonTabs(
"Common").Groups("Data").Items("DeleteRow")
btn.PerformClick()


正确的:

Dim btn As  RibbonMenu.splitButton
btn = RibbonTabs("Common").Groups("Data").Items("DeleteRow")
btn.PerformClick()