- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-6-1 07:25 ½s¿è
¦^´_ 3# alumi - '«Ø¥ß¤@¼Ò²Õ¦WºÙ¬°¥Dµ{¦¡¤ºªºµ{§Ç
- Option Explicit
- Private Sub Auto_Open() 'Àɮ׶}±Ò®É¦Û°Ê°õ¦æªºµ{¦¡
- Dim xlvbe As Variant, xlArray(), xlPath As String
- xlPath = "D:\¼Ò²Õ°Ï\" '¼Ò²Õ¦s©ñ¸ô¶i
- xlArray = Array("¼Ò²Õ1.bas", "¼Ò²Õ2.bas", "¼Ò²Õ3.bas") '°}¦C:§ó·sªº¼Ò²Õ
- With ThisWorkbook.VBProject
- For Each xlvbe In .VBComponents
- If xlvbe.Name <> "¥Dµ{¦¡" And xlvbe.Type = vbext_wt_Designer Then 'xlVba.Type = 1 ¼Ò²Õ
- .VBComponents.Remove xlvbe '²¾°£©Ò¦³¼Ò²Õ ¤£¥]§t"¥Dµ{¦¡"
- End If
- Next
- For Each xlvbe In xlArray
- If Dir(xlPath & xlvbe) <> "" Then .VBComponents.Import xlPath & xlvbe
- 'Import ¶×¤J¼Ò²Õ
- Next
- End With
- End Sub
½Æ»s¥N½X |
|