- ©«¤l
- 132
- ¥DÃD
- 56
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-17
- ³Ì«áµn¿ý
- 2024-4-29
|
¸Ñ¨M¤F
¤W¨Ó¤À¨É¤@¤U¤]¶¶«K¸ÑÄÀ§Úì¥ýªº°ÝÃDÂI(¤@¶}©l´yzªº¤£¦n Åýª©¤W¤j¤j«ÜÃøÀ´ ©êºp)
n¨Ï¼W¯q¶°¥i¥H¥X²{¦b"¦Ûq¤u¨ã¦C"¤¤»Ý¥[¤JAuto_Open
Private Sub Workbook_Open()
Dim myNewBar As CommandBar '«Å§i¤u¨ã¦Cª«¥ó
Dim myButton1 As CommandBarButton '«Å§i¤u¨ã¦C«ö¶sª«¥ó
Dim myButton2 As CommandBarButton
Set myNewBar = Application.CommandBars.Add '·s¼W¤@Ó¤u¨ã¦C
myNewBar.Name = "Tool-Bar" '¤u¨ã¦C©R¦W
With myNewBar
Set myButton2 = .Controls.Add(msoControlButton)
With myButton2
'.Style = msoButtonCaption '¥uÅã¥Ü¤å¦r ©³¤U³o3ºØ«¬¦¡¿ï¤@ºØ
'.Style = msoButtonIcon '¥uÅã¥Ü¤p¹Ï¥Ü
'¦P®ÉÅã¥Ü¤å¦r©M¤p¹Ï¥Ü
.Style = msoButtonIconAndCaption 'msoComboLabel
.BeginGroup = True
.Caption = "ToolBox" 'Åã¥Ü¦b¤u¨ã¦C¤Wªº«ö¶s¤å¦r
.TooltipText = "ToolBox" '·Æ¹«²¾¹L¥h®É¡A©ÒÅã¥Üªº´£¥Ü¤å¦r
.FaceId = 435 '¤p¹Ï¥Ü
.Tag = "MyCustomTag"
.OnAction = "ToolBox" '³]©w«ö¤U¦¹Áä®É©Òn°õ¦æªº¥¨¶°
End With
.Position = msoBarBottom 'Top '¤u¨ã¦CÂ\©ñ¦b¤W¼h
.Visible = True
End With
End Sub
¥t¥~ÁÙn¼g¤@ÓÃö³¬ªºµ{¦¡
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Tool-Bar").Delete
End Sub |
|