ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] ¦Û»s¼W¯q¶°(¤u¨ã¦C)

[¤À¨É] ¦Û»s¼W¯q¶°(¤u¨ã¦C)

³Ìªñ´X¤Ñ±N¦Û»sªº¼W¯q¶°§ï¬°¹Ï¥Ü¤u¨ã¦C


¦b³o¤À¨É¤u¨ã¦Cªº»s§@µ{¦¡

'¥H¤U¶}©l¦w¸Ë¼W¯q¶°¡Fµù¦¹µ{¦¡©ñ¸m©óThisWorkbook¤U
Private Sub Workbook_AddinInstall()

'·s¼W¤@­Ó¥sRaytoolªº¤u¨ã¦C
Application.CommandBars.Add(Name:="Raytool").Visible = True

'¥H¤U¶}©l³]©w²Ä¤@­Ó«ö¶s
Set MyItem1 = Application.CommandBars("Raytool").Controls.Add(Type:=msoControlButton)
     MyItem1.Caption = "¶}±Ò°ÊºA"               '«ö¶s1ªº¦WºÙ
     MyItem1.FaceId = 2778                      '«ö¶s1ªº¹Ï¥Ü
     MyItem1.OnAction = "openfile"             '«ö¶s1ªº¥¨¶°¦WºÙ

'¥H¤U¶}©l³]©w²Ä¤G­Ó«ö¶s
Set MyItem2 = Application.CommandBars("Raytool").Controls.Add(Type:=msoControlButton)
     MyItem2.Caption = "Âà¸m¶K¤W­È"                         '«ö¶s2ªº¦WºÙ
     MyItem2.FaceId = 2685                                   '«ö¶s2ªº¹Ï¥Ü
     MyItem2.OnAction = "ValueChangeBottom"          '«ö¶s2ªº¥¨¶°¦WºÙ

End Sub

'¥H¤U¶}©l¤Ï¦w¸Ë¼W¯q¶°¡Fµù¦¹µ{¦¡©ñ¸m©óThisWorkbook¤U
Private Sub Workbook_AddinUninstall()
    Application.CommandBars("Raytool").Delete
End Sub

µù¡Gexcel FaceID¥i¦Û¦æ¤Wºô´M§ä
°Ê©À¦¨¦]¿n¦]¦¨ªG by huijuang

¦^´_ 1# huijuang

ª¦¤å¦Ü¦¹,·PÁ¤j¤j¤À¨É¼W¯q¶°«ö¶sªº°T®§
¥t¥~¸É¥R,«ö¶s­n±Ò°Êªº¥¨¶°

¥i¥H¦p¤U(¦]¬°§Ú¬O¹J¨ì³o­Ó¤p°ÝÃD~°­ÀÉÀð)
'«ö¶s¤@
Public Sub openfile()
'¬Ù²¤,¦Û¤v¥[µ{¦¡½X
End Sub

'­n¥ÎPublic sub ³á~

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD