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

[µo°Ý] ¤Þ¥Î¨ä¥L±±¨î¶µªº°ÝÃD

[µo°Ý] ¤Þ¥Î¨ä¥L±±¨î¶µªº°ÝÃD

½Ð°Ý , ¦]¬°§Ú³]­p¦nªºªí³æ¦³¥Î¨ìlistview±±¨î¶µ ,
¸Ó±±¨î¶µÄÝMicrosoft ListView Control  (COMCTL32.OCX)
¦ý¥i¯à¨ì¤F¥t¥~¤@¥x¹q¸£ , ´N¨S¦³¸ÓOCX ©Î¦s©ñ¦ì¸mÅܤF ,
¾É­P¥X²{¿ù»~  "ª«¥óµ{¦¡®w¤£¦Xªk , ©Î¨ä¤¤©Ò¤Þ¥Îªºª«¥ó©w¸q¤w¸g¤£¦s¦b"
­n«ç¼Ë¤~¯à¸Ñ¨M³oÃþªº°ÝÃD?
©ÎªÌ¦³¿ìªk¦bworkbook¥´¶}®É¥Îcode¥h³]©w¤Þ¥Îªº±±¨î¶µ¸ô®|¶Ü?

¦^´_ 1# stillfish00


    ¥i±N¸ô®|  ¥t³]¤@¤¸¥ó ¥[¥H±±¨î
¨Ã©ó ¶}±Ò®É ¸õ¥X¤¸¥ó ÂǦ¹±±¨î

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_  stillfish00


    ¥i±N¸ô®|  ¥t³]¤@¤¸¥ó ¥[¥H±±¨î
¨Ã©ó ¶}±Ò®É ¸õ¥X¤¸¥ó ÂǦ¹±±¨î
mark15jill µoªí©ó 2012-12-26 11:29


¤£¦n·N«ä , §Ú¤£À´ "¶}±Ò®É ¸õ¥X¤¸¥ó ÂǦ¹±±¨î" ªº·N«ä¬O ?

§Ú¥Ø«e§ä¨ìªº»yªk , ¤ñ¸û±µªñ§Ú·Q­nªº¬O¥Î¹³
ThisWorkbook.VBProject.References.AddFromFile
¥h§ïÅܤޥθô®| , ¤£¹L¼È®ÉÁÙ¨SªÅ¥h¹ê»Ú¸Õ¸Õ¬Ý¬O¤£¬OOK ...

TOP

¦^´_ 3# stillfish00


    ³o»ò»¡¦n¤F

1.§A³]­p¦nªºªí³æ ¬O²[»\¦bExcel VBA ¤º¡AÁÙ¬O¥t¥~¥]¸Ë¦¨°õ¦æÀÉ?
2.©Ò¿×³]©w¤@¶}ÀÉ®×´N°õ¦æªº·N«ä
Private Sub Workbook_Open()
'userform1.show
'applocation XXXX
End Sub

³o¬O·íÀɮ׶}±Ò´N°õ¦æXXXX°Æµ{¦¡ ©Î ªí³æ©I¥s

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 4# mark15jill
¬OExcel VBAªºªí³æ , ¦ýªí³æ¤Wªº±±¨î¶µ¬O¥Î·s¼W±±¨î¶µ¥h¤Ä¿ïªº
¦p¹Ï¤Ä¿ïªºMicrosoft ListView Control  , ¨ä¦ì¸m¦bC:\Windows\System32\COMCTL32.OCX

¦ý­Y§O¤H¦bC:\Windows\System32\¨S¦³¸ÓOCX , ©Î¨t²Î¸ô®|¤£¤@¼Ë
«h¦b°õ¦æ©³¤U®É , ´N·|¥X¿ù
Private Sub Workbook_Open()
    Load userform1
    userform1.show
End Sub

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2013-1-2 09:31 ½s¿è

¦^´_ 5# stillfish00

·|¿ù»~¬O¥¿±`ªº..
¦]¬°«ü¦V¿ù»~ ©Î µL«ü¦V¤§¶µ¥Ø
µ{¦¡·íµM§PŪ¤£¥X¨Ó

«Øij
¥i¦A¶}±Òµ{¦¡«e¥ý§PŪ¸ÓÀɮ׬O§_¦s¦b©ó§PŪ¥Ø¿ý©³¤U
¦p
Private Sub Workbook_Open()
if dir("C:\Windows\System32\COMCTL32.OCX") <>"" then
      Load userform1
     userform1.show
endif
end sub

©ÎªÌ
§PŪµL¦¹ÀÉ®× ©Î ¤£¦A¹w³]¥Ø¿ý©³¤Uªº¸Ü
·j´M¹w³]¥Ø¿ý¥B±NÀɮ׽ƻs¨ì¸Ó¥Ø¿ý(³o¦³ÂIÃþ¦ü¤ì°¨ªº¼gªk)

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 1# stillfish00
­n¸Ñ¨M¸Ó¹q¸£¤¤µL¦¹±±¨î¶µ©Î¦ì¸m¿ù»~ªº°ÝÃD
µLºÃªº´N¬O­n¦bOFFICE¹w³]¸ê®Æ§¨¤º¸m¤J¸Ó±±¨î¶µªºDLL
¸Ñ¨M¤èªk·íµM´N¬O±N§A¹q¸£¤¤¸ÓDLLÀɮ׽ƻs¨ì±ý¨Ï¥Î¦¹Àɮתº¹q¸£C:\Windows\system32\
ªº¥Ø¿ý¤U
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# mark15jill
¦^´_ 7# Hsieh

ÁÂÁ¨â¦ì¦^À³ ,
­ì¥»¬O·Q»¡­Y¦P®Éªþ¤Wocx/dllµ¹§O¤H®É , ¦³¨S¦³¨ä¥¦«ü©w¤Þ¥Î¸ô®|¤èªk¥i¥H°jÁ׳o¿ù»~
µ{¦¡¤¤ª½±µ½Æ»s¹L¥h§Ú¤]ı±o¤£¤Ó¦n...
¬Ý°_¨Ó¦ü¥G¥u¯à´£¥Ü¨Ï¥ÎªÌ«á , Åý¥L¦Û¤v¤â°Ê½Æ»s·|¦n¤@ÂI?

TOP

¦^´_ 8# stillfish00

ºî¦X¥H¤W°Q½×
´N¬O¥²¶·½Æ»s¦¹OCX©Î¬ODLLÀÉ®×µM«á§PÂ_¸Ó¹q¸£¬O§_¤w¦³¦¹ÀÉ®×
Ãþ¦üªþ¥ó
Excel add dll.zip (307.49 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 8# stillfish00

¥i¥H·s¼W¤@­Ó´£¥Ü°T¸¹(¦p MSGBOX)
¦¹°T¸¹¦b§PÂ_¹w³]¥Ø¿ýµLÀɮפU®Ú¾Úµ²ªG¶i¦æ¬O§_½Æ»sªº¿ï¶µ

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD