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

[µo°Ý] (¤w¸Ñ¨M)VBA²ÅéÂàÁcÅé

[µo°Ý] (¤w¸Ñ¨M)VBA²ÅéÂàÁcÅé

¥»©«³Ì«á¥Ñ freeffly ©ó 2012-2-22 17:07 ½s¿è

Option Explicit
Private WithEvents GB_CbE As CommandBarEvents
Private WithEvents Big5_CbE As CommandBarEvents
¡@
________________________________________
Private Sub Workbook_Open()
    CreateVBEMenu
End Sub
¡@
________________________________________
Private Sub Workbook_AddinInstall()
    Dim AI As AddIn, hWnd As Long
    On Error Resume Next
    hWnd = Application.VBE.MainWindow.hWnd
    If Err.Number = 1004 Then
        MsgBox "±zªº¦w¥þ©Ê³]©w¤£¤¹³\±z°õ¦æ¦¹µ{§Ç." _
                & vbCrLf & vbCrLf & "½Ð§ó§ï¦w¥þ©Ê³]©w«á­«·s°õ¦æ:" _
                & vbCrLf & vbCrLf & " 1. ÂI¿ï ¤u¨ã - ¥¨¶° - ¦w¥þ©Ê." _
                & vbCrLf & " 2. ÂI¿ï  '«H¥ô¦s¨ú Visual Basic ±M®×"
        On Error Resume Next
        For Each AI In Application.AddIns
            If AI.Name = ThisWorkbook.Name Then
                AI.Installed = False
                ThisWorkbook.Close False
            End If
        Next AI
    End If
End Sub
¡@
________________________________________
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    On Error Resume Next
    Application.VBE.CommandBars("cmd_TCSC").Delete
    Application.VBE.CommandBars(2).Left = 0
End Sub
¡@
________________________________________
Sub CreateVBEMenu()
    Dim vcbr As CommandBar, vctl As CommandBarControl
    '¦pªG cmd_TCSC¦s¦bªº¸Ü,§R°£¥¦
    On Error Resume Next
    Application.VBE.CommandBars("cmd_TCSC").Delete
    Set vcbr = Application.VBE.CommandBars.Add(Name:="cmd_TCSC", _
            Position:=msoBarTop, temporary:=True)
    '·s¼WButton
    vcbr.Visible = True
    vcbr.RowIndex = Application.VBE.CommandBars(2).RowIndex
    Set vctl = vcbr.Controls.Add(Type:=msoControlButton)
    With vctl
        ThisWorkbook.Sheets("icon").Shapes("TCSC").Copy
        .PasteFace
        .Style = msoButtonIcon
        .TooltipText = "ÁcÂà²"
        Set GB_CbE = Application.VBE.Events.CommandBarEvents(.Control)
    End With
    Set vctl = vcbr.Controls.Add(Type:=msoControlButton)
    With vctl
        ThisWorkbook.Sheets("icon").Shapes("SCTC").Copy
        .PasteFace
        .Style = msoButtonIcon
        .TooltipText = "²ÂàÁc"
        Set Big5_CbE = Application.VBE.Events.CommandBarEvents(.Control)
    End With
End Sub
¡@
________________________________________
Private Sub GB_CbE_Click(ByVal CommandBarControl As Object, _
        handled As Boolean, CancelDefault As Boolean)
    Call BIG5_GB
End Sub
¡@
________________________________________
Private Sub Big5_CbE_Click(ByVal CommandBarControl As Object, _
        handled As Boolean, CancelDefault As Boolean)
    Call GB_BIG5
End Sub




³o­Ó¬O¦b¬Y­Óºô¯¸¤W¬Ý¨ìªº
¥i¥H¥Î¨ÓÂഫ²Å骺VBAÅܦ¨ÁcÅé
§Úª½±µ¶K¨ìµ{¦¡½X¤¤
¥i¬O·|¥X²{°ÝÃD
¦³¤Hª¾¹D«ç»ò¨Ï¥Î³o­Ó¶Ü?
¸ê®Æ¨Ó·½ºô§}
http://chijanzen.net/wp/?p=358
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

³Ìªñ¦b¨Ï¥Î³o¦UªF¦è¤£ª¾¹D¬°¤°»ò¦³®É«áÀÉ®×Ãö±¼¦b¥´¶}¨º¦UÁc²ªº¹Ï®×´N¤£¨£
ÁÙ­n­«·s¥h¤Ä¿ï¼W¯q¶°
¦w¸Ë®É"«H¥ô¦s¨úVisual Basic ±M®×"¨S¥´¤Ä¤]¥i¥H¹L¦ý¬O¤£¯à¥Î
¤£ª¾¹D¬O¤£¬O¤½¥q¹q¸£ªºexcel¦³°ÝÃD
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

Microsoft.Com
Office 2003 ²ÁcÂà´«¼W¯q¶°
http://www.microsoft.com/downloa ... p;displayLang=zh-tw

TOP

§Ú¥Î¨ì³Ì«áµo²{
http://chijanzen.net/wp/?p=177
³o­Ó¤~¬O³Ì¦³¥Îªº(§Ú¬Ooffice 2003)
¤U¸ü«á...°õ¦æRegDll.exe....¨ìvba¼Ò¦¡(µøµ¡¤U)....¼W¯q¶°....¼W¯q¥\¯àºÞ²z­û....±NVBECodeChineseTranslationAll ¸ü¤J (¥k¤U¨¤¸ü¤J¦æ¬°³£­n¥´¤Ä)..§¹¦¨
¦b­nÂà´«ªºµ{¦¡½X¤U, «ö¥kÁä, ´N¥X²{§Ö±¶¦C....¦¨¥\

TOP

³o­ÓªF¦è¯uªº¬O¤Ó´Îªº¥\¨ã¤F, ¯uªº¬O±Ï¥@¥D

TOP

²×©ó¬Ý¨ì¤F
ÁÂÁ¦U¦ì¤j¤jªºÀ°¦£
­ì¨ÓÁÙ­n¦A¨Ï¥t¥~¤@­Ó¼Ò²Õªºµ{¦¡½X
§Ú«Ü¦n©_§Ú¤@¶}©l¶Kªº¨º¤@¬qµ{¦¡½X¦n¹³¨S°µ¥Î
¬O¤£¬O?
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¥»©«³Ì«á¥Ñ PD961A ©ó 2010-8-1 16:56 ½s¿è

¦^´_ 7# freeffly


  ½Ð chijanzenª©¥D«ü¾É«á
  ¼W¯q¶°H0077¡A¤U¸ü«á¦b¼W¯q¶°¤¤¸ü¤J¡Avbeµøµ¡¤º§Y¦h¤FÁc²Âà´«ªº«ö¶s¡A«ö¤@¤U§Y¥iÂà´«.
¦pHSª©¥D©Òµ¹ªº¹Ï¥Ü(chijanzenª©¥D¼gªº¦¹µ{¦¡¨Ã¨S¦³ª©¥»®t§O)

¥ý½T»{±NVBETCSCConverter.xla¤â°Ê½Æ»s¨ì excel 2003 ¸ê®Æ§¨¤¤¡A
¦pªG¦³¦¹Àɮתí¥Ü¦w¸Ë§¹¦¨...´N¥i¥H°õ¦æ...
­YVBAªºµøµ¡ÁÙ¬O¨S¦³"²""Ác"2«ö¶s¥i¿ï
´Nªí¥Ü¦¹µ{¦¡µLªk¨Ï¥Î¦b±zªº¹q¸£(chijanzenª©¥D¨S¹J¨ì¹L)

TOP

¦^´_ 9# Hsieh
    ÁÂÁ¶W¯Åª©¥D
¥u¦³¬Ý¨ì¾A¥Î©ó¢±¢¯¢¯¢²ªºª©¥»¨Sª`·N¨ì¬O°w¹ï¤u§@ªí¤å¦r



¦^´_ 7# freeffly¤£¦n·N«ä
¢Ö¢¯¢¯¢¶¢¶ªº¨º½g¤å¸Ì¦³¢Û¢Ý¢Ò¢ã¢Ú¢Óªº«öÁä¸Ì­±¦³µ{¦¡½X

TOP

¦^´_ 7# freeffly


   
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

[ª©¥DºÞ²z¯d¨¥]
  • Hsieh(2010-7-29 20:05): ³o¬O¤£¤@¼Ëªº¼W¯q¶° ¤@­Ó¬O°w¹ï¤u§@ªí¤å¦r ¤@­Ó¬O°w¹ïVBE¤å¦r

¦^´_ 7# freeffly

H0077¬O2007
¸Õ§ï¥ÎH0067
http://chijanzen.net/wp/?p=142

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD