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

[µo°Ý] ¦p¦ó±N¼W¯q¶°ªº¶µ¥Ø§¹¥þ²¾°£±¼?

[µo°Ý] ¦p¦ó±N¼W¯q¶°ªº¶µ¥Ø§¹¥þ²¾°£±¼?



­n¦p¦ó¥i¥H§âprogram³o­Ó¼W¯q¶°,³z¹LVBAªº¤è¦¡±q²M³æ¤º§R°£,¦Ó¤£¬O¨ú®ø¥´¤Ä¦Ó¤w?


¤U¦Cµ{¦¡½X,§Ú¥u·|¨ú®ø¥´¤Ä,µLªk±N¼W¯q¶°ªº¶µ¥Ø§¹¥þ²¾°£±¼
  1.     Dim myAddin As Excel.AddIn
  2.     Set myAddin = Application.AddIns.Add(path0 & "Program.xlam", True)
  3.     myAddin.Installed = False
½Æ»s¥N½X
¥Ø«e°ÝÃD:
­Y¬O¼W¯q¶°Àɮתº¦ì¸m²¾°Ê¤F,¦ÓÀɮצWºÙ¨S¦³§ó§ïªº®É­Ô,·|µLªk±Ò°Ê¼W¯q¶°
¦Û¤v·Qªº¸Ñ¨M¤è¦¡:
¦b¨C¦¸¶}±Ò¼W¯q¶°¤§«e¥ý§R°£­ì¥»ªº¼W¯q¶°,¦A¥[¤J¥Ø«e¦ì¸mªº¼W¯q¶°¤~¤£·|µo¥Í¦¹°ÝÃD,ÁÙ¬O¤j¤j­Ì¦³§Oªº¸Ñ¨M¤è¦¡?
PKKO

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-11-9 09:26 ½s¿è

¦^´_ 1# PKKO


   
program³o­Ó¼W¯q¶°,³z¹LVBAªº¤è¦¡±q²M³æ¤º§R°£,¦Ó¤£¬O¨ú®ø¥´¤Ä¦Ó¤w

¶·±Nprogram³oÀɮײ¾¶} ¼W¯q¶°ªº¸ê®Æ§¨
©Î ±Nprogram³oÀÉ®× §R°£
2003¼W¯q¶°ªº¸ê®Æ§¨
  1. C:\Program Files\Microsoft Office\OFFICE11\Library\
½Æ»s¥N½X
  1. Sub Ex()
  2.     Dim ad As AddIn
  3.     For Each ad In Application.AddIns
  4.         MsgBox ad.Path '¼W¯q¶°ªº¸ê®Æ§¨
  5.     Next
  6. End Sub
½Æ»s¥N½X
¦p¦ó²¾°ÊÀÉ®× ½Ð¥Î vba  ªº FileSystemObject ª«¥ó
¥i¦Û¦æ½m²ß
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE

·PÁ¶Wª©¤j¤jªº¦^´_

§Ú¹Á¸Õ¹L¤F¶Wª©¤j¤jªº¤èªk,§Ú±N¼W¯q¶°ªºÀɮקR°£¤§«á

¥u­n¶}±Òexcel¥¦´N·|»¡§ä¤£¨ì¼W¯q¶°,½Ð½T»{Àɮצì¸mµ¥µ¥

§Ú¤F¸Ñ²¾°£Àɮפ§«á,¦A¥Î"¤H¤u"ÂI¿ï¼W¯q¶°,·|¥X²{§ä¤£¨ì¼W¯q¶°xxx,±z­n±N¥¦±q²M³æ¤¤²¾°£¶Ü?
¦ý¨Ï¥ÎªÌ¤£·|¥hÂI¼W¯q¶°¸Ì­±ªº³o­Ó¦a¤è

©Ò¥H²M³æ¤¤ªº¶µ¥Ø·|¤´µM«O¯dµÛ

¦]¦¹·Q½Ð°Ý¤@¤U,¦³¨S¦³µ{¦¡ªº¤èªk¥i¥H²¾°£±¼¼W¯q¶°³o­Ó²M³æ©O?

­Y¥u¬O§R°£ÀÉ®×,·|Åܦ¨¨C¦¸¥´¶}³£»¡§ä¤£¨ì¼W¯q¶°= =
PKKO

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-11-9 14:34 ½s¿è

¦^´_ 3# PKKO

2003¼W¯q¶°²M³æ¦s©ñªº¸ê®Æ§¨
  1. C:\Program Files\Microsoft Office\OFFICE11\Library
  2. C:\Program Files\Microsoft Office\OFFICE11\Library\SOLVER
  3. C:\Program Files\Microsoft Office\OFFICE11\LIBRARY\ANALYSIS
½Æ»s¥N½X
§Aªº¦Û­q¼W¯q¶° »Ý¦s©ñ ¦b³o¨Ç¸ê®Æ§¨¤¤.²¾°£©Î§R°£¤£­nªº¦Û­q¼W¯q¶°.
½Ð­«±Òexcel ¼W¯q¶°ªº²M³æ¤¤ ,®ø°£¤F¤£­nªº¦Û­q¼W¯q¶°.
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE


§Aªº¦Û­q¼W¯q¶° »Ý¦s©ñ ¦b³o¨Ç¸ê®Æ§¨¤¤.²¾°£©Î§R°£¤£­nªº¦Û­q¼W¯q¶°.=>§Ú¤w¸g±NÀɮשñ¦b¼W¯q¶°ªºÀ³¦³¦ì¸m,µM«á±Ò¥Î¼W¯q¶°
¦]¬°§ÚªºÄé¦bd±ä,³z¹L±zªºµ{¦¡½X§ä¨ì¦ì¸m¬O:D:\Office\Office14\Library\Analysis

½Ð­«±Òexcel ¼W¯q¶°ªº²M³æ¤¤ ,®ø°£¤F¤£­nªº¦Û­q¼W¯q¶°.=>³o¥y¸Ü¤£¬O«ÜÀ´

§Ú§â¼W¯q¶°©ñ¦b«ü©w¦ì¸m¤§«á±Ò°Ê¦o,µM«áÃö³¬©Ò¦³excel,±N¼W¯q¶°ÀɮקR°£,¦A¦¸¥´¶}excel¥¦·|¥X²{»¡©ú§ä¤£¨ì¼W¯q¶°xxx,¦ý§ÚÂI¿ï²M³æ«áµo²{,¼W¯q¶°ªº²M³æ¸Ì­±ÁÙ¬O¦³§Ú¦Û­qªº¼W¯q¶°¦WºÙ­C
¥u¬O¨S¦³¤Ä¿ï¦Ó¤w,¦ý¬O¨Ã¨S¦³³Q§R°£±¼
PKKO

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-11-10 06:54 ½s¿è

¦^´_ 5# PKKO
2003¼W¯q¶°
ÀÉ®×¥t¦s·sÀÉ(ÀÉ®×Ãþ«¬ addin)ªº¸ê®Æ§¨
  1. C:\Documents and Settings\¨Ï¥ÎªÌ(§A¹q¸£¤Wªº¦WºÙ)\Application Data\Microsoft\AddIns
½Æ»s¥N½X
2003 Excel µ{¦¡«ü©wªº¸ê®Æ§¨
  1. C:\Program Files\Microsoft Office\OFFICE11\Library
  2. C:\Program Files\Microsoft Office\OFFICE11\Library\SOLVER
  3. C:\Program Files\Microsoft Office\OFFICE11\LIBRARY\ANALYSIS
½Æ»s¥N½X
program§Aªº¼W¯q¶°  ¶·¦s¦b¤W­±ªº¥ô¤@¸ê®Æ§¨.¤¤
°õ¦æµ{¦¡«á,¦A¶}±ÒExcel, program§Aªº¼W¯q¶°¤w¤£¦b¼W¯q¶°ªº¿ï³æ¤¤
  1. Option Explicit
  2. Sub Ex()
  3.     Dim A As AddIn
  4.     For Each A In Application.AddIns
  5.       If LCase(A.Title) Like "*program*" Then
  6.         A.Installed = False   '¨ú®ø ¤Ä¿ï
  7.         Kill A.FullName  '§R°£³oÀÉ®×
  8.       End If
  9.     Next
  10.     ThisWorkbook.Save
  11.     Application.Quit
  12. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤Ó¶§¥ú¤j¡B¤÷¥À®¦¤j¡B§g¤l¶q¤j¡A¤p¤H®ð¤j¡C
ªð¦^¦Cªí ¤W¤@¥DÃD