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

[¤À¨É] ¾Ç²ßExcel VBAªº¤@¨Ç°ò¥»·§©À

·PÁ§@ªÌªº¥Î¤ß¡AÅý§Ú·d²M·¡¬°¦ó¤@­Ó¦Wµü¡A¦³¨º»ò¦hºØ­^¤åªí¥Üªk¡AÁÂÁ¡C
TEBXB

TOP

¦^´_ 15# FAlonso
¸Õ¸Õ¬Ý
  1. Sub c()
  2. With ActiveWorkbook.VBProject.VBComponents.Import("D:\Tony\Excel VBA\a.bas")
  3. Application.Run "a"
  4. Application.VBE.ActiveVBProject.VBComponents.Remove _
  5. Application.VBE.ActiveVBProject.VBComponents(.Name)
  6. End With
  7. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  FAlonso

§Ú·QÀ³¸Ó¬O   
Application.VBE.ActiveVBProject.VBComponents.Remove Application.VB ...
frankjenq µoªí©ó 2010-12-16 10:00



    ¤w¸gÁY¤F¤@¦æ,ÁÙ¬O¦³°ÝÃD
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 10# FAlonso

§Ú·QÀ³¸Ó¬O   
Application.VBE.ActiveVBProject.VBComponents.Remove Application.VBE.ActiveVBProject.VBComponents(.Name)  '§R°£
¦Ó¤£¬O¤À¦¨¨â¦æ
Application.VBE.ActiveVBProject.VBComponents.Remove
Application.VBE.ActiveVBProject.VBComponents(.Name)  '§R°£

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-12-15 20:55 ½s¿è

¦^´_ 12# FAlonso
.Name ¿ù»~
¨S¬Ý¨ì¨Ï¥Î¨ì  With ????
                             .Name
                       End With

TOP

[img]

Uploaded with ImageShack.us[/img]ÁÙ¦³¤@ÂI°ÝÃD,¥X¤F³o¤@­Ó"¤£¥¿½Tªº¤Þ¥Î"
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

Application.VBE.ActiveVBProject.VBComponents.Remove Application.VBE.ActiveVBProject.VBComponents(.Name) '§R°£

³o¬O¦P¤@¦æªºµ{¦¡½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

[img]

Uploaded with ImageShack.us[/img]
¦³ÂI°ÝÃD,³o¬O3¼ÓH¤jªºµ{¦¡,¥[¤Ö¤Ö­×§ï
¦³¨â­Óexcel file,¤@¦W¬°a.xls,¤º¦³¤@­Ó¥ssub a()ªºµ{¦¡,°õ¦æ¤@­Ó²³æªºmsgbox°T®§,§Ú§â¥¦¶×¥X¦Üa.bas,¥´ºâ¥Ñb.xls¤¤ªºsub c()¥s¥X¸Óa.bas,¥i¬Oµ{¦¡Ãa¤F. ¤£ª¾¦p¦ó¬O¦n
¤£¤ÓÀ´¬ÛÃö§Þ¥©,§Æ±æ«ü¥¿
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¹ï©óH¤j sub kk()¦³ÂI°ÝÃD
§Ú·Ó¤@¦¸¿ì
¦ýcompiler»¡remove¨º¦æ¤Þ¼Æ¤£¬°¿ï¾Ü©Ê(not optional)
°±¤Fmacro
¤£ª¾¦ó¸Ñ?

TOP

¬Ý¤Fª©¥Dªº¤À¨É, Åý§Ú¹ï©ó excel vba ¦³§ó²`¤Jªº¤F¸Ñ,§Ú¯uªº»Ý­n¦h¥[¥Î¨Ç¹ê°È¨Ó¥[²`¦L¶H¤F!!^^

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD