Y
yzhshi
Unregistered / Unconfirmed
GUEST, unregistred user!
是这里了,可惜我不会呀!
示例向命令栏“Custom”添加一个命令栏控件。COM 加载项“FinanceAddIn”将在
每次单击该控件时运行。
Set myBar = CommandBars("Custom")
Set myControl = myBar.Controls _
.Add(Type:=msocontrolButton)
With myControl
.FaceId = 2
.OnAction = "!<FinanceAddIn>"
End With
myBar.Visible = True
示例向命令栏“Custom”添加一个命令栏控件。COM 加载项“FinanceAddIn”将在
每次单击该控件时运行。
Set myBar = CommandBars("Custom")
Set myControl = myBar.Controls _
.Add(Type:=msocontrolButton)
With myControl
.FaceId = 2
.OnAction = "!<FinanceAddIn>"
End With
myBar.Visible = True