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

¬°¤°»òµ{¦¡¶]¨ì¤@¥b³£·|°±¦í¤£Ä~Äò¤F?

¬°¤°»òµ{¦¡¶]¨ì¤@¥b³£·|°±¦í¤£Ä~Äò¤F?

³Ìªñ§Q¥Î¤@­Óexcel¬¡­¶Ã¯¥h¾Þ§@¨ä¥L­Ó¬¡­¶Ã¯

¬yµ{¬O³o¼Ë:

¶}±Ò¬¡­¶Ã¯(¥D­nªºµ{¦¡) --> ÂÇ¥ÑVBA¥h¶}±Ò¥t¥~¤@­Ó¬¡­¶Ã¯(¦¸­nªº)  --> ¦b¦¸­nªº¬¡­¶Ã¯¤W¶i¦æ¤u§@  --> ¤u§@µ²§ô«á¦A¸õ¦^¥D­nªº¬¡­¶Ã¯,¨Ã±N¦¸­nªº¬¡­¶Ã¯¦sÀÉÃö³¬

µ{¦¡¦³®É­Ô·|¶]¨ì¤@¥b´N°±¦í¤F,±q¥D¬¡­¶Ã¯¸õ¨ì¦¸¬¡­¶Ã¯´N¬ðµM°±¦í¤£Ä~Äò¤u§@¤F,±q·s°õ¦æ«á¤S¦^´_¥¿±`,ÁöµM¤£¬O±`µo¥Í,¦ý·Q½Ð°Ý¤j®a³o¬O¤°»ò­ì¦]©O?

ÁÂÁÂ

¥»©«³Ì«á¥Ñ HUNGCHILIN ©ó 2010-8-14 14:25 ½s¿è

³o¬O­Ó«Ü¦nªº¸ê®Æ¤ÀªR°ÝÃD
¦b¤ÀªR¤j¶q¸ê®Æªº®É­Ô¥i¯à·|»Ý­n¦¹§Þ¥©
¶}±Ò¶×¤J¥DÀÉÃö³¬ ÀÉ®×°j°é
­pºâ­Ó§O¶×¥X­Ó§OÀɦsÀÉ


¥H§Ú¦Û¤v¬°¨Ò§Ú¥H©¹¤ÀªR¦¨¥»®É
Àɮצb¨C¦¸­pºâ§¹¦¨¥»«á ¥i¥H¶×¥X¦¨¥»­pºâµ²ªG
¤@­Ó¤ë¥i¯àºâ­Ó´X¸U¥ó¡A©Ò¥H¥i¯à¦³¼Æ¸U­Ó¦¨¥»­pºâµ²ªGÀÉ
¦pªG­n§@¤ë¤ÀªR«ç¿ì¡A­n¥þ³¡¤@°_¶×¶i­pºâÀɵM«á§@­Ó§O¤ÀªR»PÁ`¦X¤ÀªR

¦¹®É¤ÀªR§@§¹¥i¥H¥ÎVBA­Ó§O³æ¿W¶×¥X¼Æ¸U­Ó EXCELÀÉ ·íµM§Ú§ïÅܤF.XLS ¦W
Åܬ°¨ä¥L¹³¬O.CPC µ¥
§A³o°ÝÃD¦b­pºâ§¹¶×¥X¦sÀɼƸUµ§¸ê®Æªº³~¤¤
¦pªG¨Ï¥Î¤F¨ä¥Lµ{¦¡®É´N·|¥i¯à·|¥X²{

¦pªG§Aµo²{¸ê®Æ°µ¿ù«ç»ò¿ì,­«·s¶×¼Æ¸Uµ§¸ê®ÆµM«á¶×¥X¼Æ¸Uµ§?
¥i¯à§@¤@¦¸³æ¾aEXCEL VBA ¦Û¤v¶]µ{¦¡
¤£ºÞ¥L³£­n¨â­Ó¦h¤p®É¤~¯à§¹¦¨

©Ò¥H·í¦h¸ê®Æ®É§Ú­Ì¤£¯à¨Ï¥Î¦hÀÉ °ß¤@¸Ñ¨Mªº¿ìªk¬O
VBA¤º¥²¶·­n¦³©¹ªð¥\¯à
1.¦¨¥»­pºâ§¹«á¥i¥H³æ¿W¶×¥X "³æ¿W­pºâµ²ªG¥Xªí excelÀÉ" (¤]¬O¸ê®ÆÀÉ)
2.¦³¦h­Ó¸ê®ÆÀɮɥi¥H¶×¾ã¦¨³æ¿W¤@­Ó "¶×¾ã¸ê®ÆÀÉDATA excelÀÉ" (³o¼Ë´N¥i¥H¤£¥Î¨C¦¸­n¶×¤J¼Æ¸Uµ§¸ê®Æ)
   ¦¹®É1³æ¿Wªº  "³æ¿W­pºâµ²ªG¥Xªí" (¤]¬O¸ê®ÆÀÉ) ´N¥i¥H§R°£¤F
3.¦Ó"¶×¾ã¸ê®ÆÀÉDATA excelÀÉ" ¥i¥H¦P®É­pºâ¥\¯à "»s¦¨¦h­Ó¦¨¥»­pºâªºµ²ªG¥Xªí excelÀÉ(¦Û¤v¤@±i¤jªí)"
4.§A­Y­n"³æ¿W­pºâµ²ªG¥Xªí"®É¥ç¥i¥H±q"¶×¾ã¸ê®ÆÀÉDATA"Âà´«¦¨"³æ¿W­pºâµ²ªG¥Xªí"

¬G§A¥i¥H±N¼Æ¸Uµ§¤À´²¦b¼Æ¸U­ÓEXCELÀɪºDATA
¶°¤¤¦b¤@­ÓEXCELÀɤº
¥ç¥i¥H±q³o¤@­Ó¶°¤¤ÀÉ
Âà´«¦¨¼Æ¸U­Ó³æ¿WªºÀÉ
¦pªG§A¯à°µ¨ì³oÂIÀ³¸Ó´N®t¤£¦h¤F

³o¼Ë¤~¯à´î¤Ö¤@¦¸Àx¦s¼Æ¸U­ÓÀɪº§xÂZ
­n¥Î¤@­ÓÀɨӸ˼ƸU­ÓÀɪº¸ê®Æ¡A

ÁÙ¦³§Úªº¹q¸£±`Ãa´N¬O¦]¬°­pºâ«Ü½ÆÂøcpu&°O¾ÐÅé¥Î¦h
¹q¸£®e©ö¹L¼ö
§A¥Î³o¤è¦¡¨Ó­pºâ
¹q¸£­n¦h§j¹q­·®°

TOP

¦^´_ 9# sasho


    ¤èªk 1. ¥u¦n¤£¥Îmsn.
    ¤èªk 2. ¶R¥x±j«lªº¹q¸£.
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

´N¦phsieh¤j©Ò»¡,
§A¥i¥H¥ý¸Õ¸Õ¥Î°»¿ù¼Ò¦¡¨Ó¶],
µo²{µ{¦¡°±¤F, ¥i¥H«öctrl+break§âµ{¦¡°±¤@¤U, ¬Ý¬Ý°±¦b¨º¸Ì.

§A¤]¥i¥H¥uµo¤@¤U¥N½X¤W¨Ó¬Ý¬Ýªº~
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

·PÁ¦U¦ì«e½úªº¸Ñµª..

¤£¹L§Ú·Q¤j®a¥i¯à»~·|§Úªº·N«ä¤F,§Ú¦A»¡©ú¤@¤U¦n¤F

§Ú¥Ø«e§Q¥Î¤@­Óexcel·í§@¥Dµ{¦¡¥h±±¨î¨ä¥L(700¦h­Ó)excel¤u§@ï

±N©Ò¦³ªºµ{¦¡½X³q³q¼g¦b¥Dµ{¦¡·í¤¤,¨ä¥Lªº¬¡­¶Ã¯´N¥u¬O·í§@¸ê®Æ®w§@Àx¦s¦Ó¤w

³o­Óµ{¦¡¶]°_¨Óªº®É­Ô,¦pªG¨S¦³¥h¨Ï¥ÎMSNªº¸Ü,¬O¨S¦³°ÝÃDªº

°ÝÃD¬O,·í§Ú§âµ{¦¡¶}±Ò«á,¥á¦b®ÇÃä°õ¦æ¦Óµøµ¡«h©Ô¨ìMSN²á¤Ñªº¸Ü

¨ºµ{¦¡´N·|¶]¨ì¤@¥b´N°±¦í(°±¦í¦Ó¤w,¨Ã¨S¦³¥X²{¿ù»~°T®§)

¦Ó°±¦íªº¦a¤è´N¬O¦bÃö³¬¤W¤@­Ó·í§@¸ê®Æ®wªº¬¡­¶Ã¯,¶}±Ò·sªº¸ê®Æ®w¬¡­¶Ã¯¤§«á

¶}±Ò¤§«á´N°±¦í¤F,¥»¨ÓÀ³¸Ó·|¦³«áÄòªº¾Þ§@,¦ý¦b³oºØ±¡ªp®É,µ{¦¡´N¤£·|Ä~Äò¶]¤F

©Ò¥H§Ú·Q,À³¸Ó¤£¬O¦Û¤v¼gªºµ{¦¡½X¦³¤°»ò°ÝÃD(¦]¬°¦pªG¤£¨Ï¥ÎMSN¥i¥H«Ü¶¶§Q¶]§¹)

¥i¥H½Ð±Ð¤j®a¬O¤°»ò­ì¦]¶Ü?

ÁÂÁÂ

P.s Á`¦@¦³±Nªñ700MªºÀÉ®×,©Ò¥H¤£¤è«K¤W¶Ç,sorry

TOP

¦^´_ 6# sasho


Workbooks.Open Filename:="C:\DATA\" & code & ".xls"
Workbooks(code & ".xls").Activate
­ì«h¤WWorkbooks(code & ".xls").Activate³o¥y¬O¦h¾lªº
°õ¦æWorkbooks.Open Filename:="C:\DATA\" & code & ".xls"
§@¥Î¤¤¬¡­¶Ã¯´N¬OWorkbooks(code & ".xls")
§Aµ{¦¡¤£¶]­n¥Î³v¦æ¨Ó°»¿ù

°£«D¬OWorkbooks(code & ".xls").ªºÀɮ׫ܤj©Î¦³¨ä¥L¶}±Ò°ÝÃD
§_«h³o2¦æ¬O§ä¤£¨ì°ÝÃDªº
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# sasho


³o­Ó¦³«Ü¦h¥i¯à©Ê... §A½T©w¬O³o¥y¥X°ÝÃD¶Ü? ¥i§_µo¤@¤U§¹¾ã¥N½X?
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¤£¦n·N«ä ¥´¿ù¤F

À³¸Ó¬O:
Workbooks.Open Filename:="C:\DATA\" & code & ".xls"
Workbooks(code & ".xls").Activate

¨ä¤¤code¬OÅܼÆ,¾ã­Óµ{¦¡°õ¦æ¨Ã¤£·|¦³°ÝÃD,¦]¬°¾ã­Ó¶]¤U¨Ó¨Ã¨S¦³¿ù»~µo¥Í
¥u¬O¦³®É­Ôµ{¦¡°õ¦æ«á§Ú´N§âexcel¥á¦b®ÇÃäÅý¥L¦Û¤v¶],
µM«á¥h²áMSN
¦ý¦³¥i¯à²á¤@²á´Nµo²{µ{¦¡°±¦í¤F¨S¦³Ä~Äò¶]
¦pªG¬Oµ{¦¡°õ¦æ«á´N¨S¦³°µ¨ä¥L¨Æ±¡ªº¸Ü¨º´N¤£·|µo¥Í¥H¤Wªº°ÝÃD
©Ò¥H·Q»¡,¬O¤£¬O§Q¥ÎVBA°µ¦h­Ó¬¡­¶Ã¯±±¨îªº®É­Ô,·|¦³³o¼Ëªº¤pbug²£¥Í?

TOP

¦^´_ 3# sasho


    Workbooks.Open Filename:="C:\DATA\" & date & ".xls"
Workbooks(code & ".xls").Activate

ÀɦW¬O ¤é´Á+".xls" ÁÙ¬O code +".xls"

¦ô­p§A­nªº¬O
  1. Workbooks.Open Filename:="C:\DATA\" & code & ".xls"
  2. Workbooks(code & ".xls").Activate
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¥»©«³Ì«á¥Ñ basarasy ©ó 2010-7-31 08:46 ½s¿è

¦^´_ 3# sasho

      ¸Õ¸Õ¦bcode.xls ªºA1¤J                     =SUBSTITUTE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","")
´N·|¦³code.xls ªºLINK   
eg.  C:\code.xls
   
    Workbooks.Open Filename:="C:\code.xls"
MyCodeName= ActiveWorkbook.Name
Workbooks(MyCodeName).Activate
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¤H¨ÆªºÁ}Ãø»PµZ¿i¡A´N¬O¤@ºØ¦ÒÅç¡C
ªð¦^¦Cªí ¤W¤@¥DÃD