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

[µo°Ý] VBA°õ¦æ®Éµo¥Í°õ¦æ¶¥¬q¿ù»~''91''

[µo°Ý] VBA°õ¦æ®Éµo¥Í°õ¦æ¶¥¬q¿ù»~''91''

[ª©¥DºÞ²z¯d¨¥]
  • ¤p»x(2010-5-26 10:36): ¤£¯à¶Çªþ¥ó?§A¤£¬O³£¤w¸g¤W¶Çªþ¥óÀɮפF

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-5-26 16:36 ½s¿è

¤p§Ì¹J¨ì¤@­Ó°ÝÃD

´N¬O¤p§Ì¦pªG¥ý«ö¦p¤U¹Ïªº¶¶§Ç¡A¨Ó°õ¦æ¥¨¶°¡ã¡ã
´N·|¥X²{userform2ªºªí³æ


¦ý¦pªG¥ý«ö¦p¤U¹Ïªº¶¶§Ç®É



´N·|¥X²{¦p¤U¹Ï


·í«ö¤U½T©w®É¡A´N·|¥X²{¦p¤U¹Ï (°õ¦æ¶¥¬q¿ù»~91¡A¨S¦³³]©wª«¥óÅܼƩÎwith°Ï¶ôÅܼơ^¡H


¤p§Ì¦bºô¸ô¤W§ä¤FÃö©ó³o­Ó°T®§ªº¸ÑÄÀ¡A¦ý³o­Ó°T®§¦ü¥G¦³¦n´XºØ»¡ªk

¦³»¡¬OÅܼƨS³]¬°°Ï°ì¡A¤]¦³»¡¬O¨S³]¬°¥þ°ìÅܼơã¡ã

½Ð°Ý³o¬O«ç»ò¦^¨Æ©O¡H
2.rar (19.07 KB)
·PÁ¦U¦ì¡A¯¬¦w±d¡ã¡ã


PS¡G¬°¤°»ò½×¾ÂµLªk¶Çªþ¥ó¤W¥h¡H
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

¥»©«³Ì«á¥Ñ syuan ©ó 2010-11-10 19:42 ½s¿è

Test.rar (14.86 KB)
·PÁÂHsieh¡Bkimbal»PMinªº¦^ÂÐ

³o´X­Ó¤ë¤p§Ì¤@ª½¦b¦£§Oªº®×¤l¡A©Ò¥H´N¨S¿ìªk¤W½u¨Ó¦^ÂСI

ÁöµM³~¤¤¦³¶]¨ì§O©«¥h©µÄò°ÝÃD¡A¦ý¤p§Ì·Q¡D¡D¡DÁÙ¬O¥Î³o©«¦^©«¦n¤F
http://forum.twbts.com/viewthread.php?tid=1199&page=2


¤p§Ì¤S¹J¨ì¤@­Ó°ÝÃD¡A¦p¤U¹Ï
ÂŦâ®Ø¬°¸ê®Æ¡A¥k°¼userform2ªí³æªº¤Wªº¤å¦r¨Ó·½¡A§Y¬O±q¥ª°¼ÂŦâ®Ø¦Ó¨Ó¡]·Æ¹«¨Ì§ÇÂI¿ï1¡B2¡B3«á·|¥X²{userform2)


¥u¬O¤p§Ì¦³¤Ñ¬ðµM·Q¨ì¡A¦pªG¦b²Ä¤C¦C´¡¤J¤@¦C©Î´¡¤J¸ê®Æ«á¡A¨ºuserform2¤Wªº¤å¦r¨Ó·½¬O¤£¬O·|¶]±¼¡H

¤@¸Õ¡ã¡ãªG¤£¨äµM¡A¦p¤U¹Ï


¦]¬°¤p§Ì¬O¥Î
Set TA = Sheets("¥Ò").Range("a2:b6")
Set JP = Sheets("¥Ò").Range("a7:b11")

ªº»yªk¨Ó¼g¡A¤]´N¬O«ü©w¦æ»P¦CªºÀx¦s®æ¨Ó³sµ²¸ê®Æ¡I

¨º¤é«á¦pªG­n¦p²Ä¤G±i¹Ï´¡¤J¸ê®Æ®É¡A¨º»ò¡¨¨C¤@¦æ¡¨¸Ìªºrange°Z¤£¬O­n³s°Ê§ó·s¡D¡D¡D

·Q½Ð°Ý¥ý¶i­Ì¡Avba¬O§_¦³¨ç¼Æ©Î«ü¥O¥i¥H¨Ó§JªA³o­Ó°ÝÃD©O¡H

¥H¤W¡A·PÁ¦U¦ì¡ã¡ã¯¬¦w±d¡I
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

©¿²¤«e¬q¦r....©¿²¤-«áªº¦r¦ê

"©¿²¤"§ï¥Î"¥]§t" ¸ÑÄÀ·|¸û«ê·í!
©Î¬O¸ÑÄÀ¬°Like¤]¦æ~
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

¦^´_ 13# syuan


    ¹ï°Ú
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

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

TOP

¥»©«³Ì«á¥Ñ syuan ©ó 2010-8-11 23:24 ½s¿è
²{¦b¥Îªº¬O¤£¬OÁÙ¬O³o¥y?
StrFile = Dir(FS & K & "-*.pdf")
¬Oªº¸Ü¥i¥H§ï¦¨³o¥y¸Õ¸Õ
StrFile = Dir(FS & "*" & K & "-*.pdf")
kimbal µoªí©ó 2010-7-21 23:41


·PÁÂkimbal¤jªº±Ð¾Ç¡I

¤p§Ì¦]ªñ´X­Ó§«ô¬Ò¦b¦£¤½¥qªº±M®×¡AÁö³£¦³¦£¸Ì°½¶¢¨Ó½×¾Â¤WÂI¿ï¡¨¨C¤é³ø¨ì¡¨¥ô°È¨ÓÁÈ¿n¤À¡I

¦ý¨Ã¨S¦³¨Ó¦^Âгo½g¡A¯u¬O¬Æ·P©êºp¡I¡]¦]¤p§Ì¥ç¦b¶i¦æ¸Óµ{¦¡ªº¥t¤@¶µ¥\¯àªºÀɮ׳sµ²¡^

¤p§Ì±N±z©Ò¥Üªº¨º¥y»yªkÁä¤Jµ{¦¡¤¤¡I¤w¯à¶}±Ò·Q­nªºpdfÀɨðõ¦æµL»~¡I


¤ñ¸û¦n©_ªº¬O¨º¥y»yªkStrFile = Dir(FS & "*" & K & "-*.pdf")¬O¤£¬O¸ÑÄÀ¦¨

strfile=¥Ø¿ý¡]¡¨¸ô®|¡¨&¡¨©¿²¤«e¬q¦r¡¨&¡¨¤å¦r²°¸Ìªº¦r¦ê¡¨&¡¨©¿²¤-«áªº¦r¦ê.pdf¡¨¡^

FS="X:\"
K=Textbox1.text


¤£ª¾¤p§Ì³o¼Ë¸ÑÄÀ¬O§_¥i¦æ¡H

¥H¤W¡A¯¬¦w±d¡I
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

·PÁÂkimbal¤jªº±Ð¾Ç¡I

¤p§Ì³o´X¤Ñ¤@ª½¦b¦£§Oªº®×¤l¡A©Ò¥H´N¨S®É¶¡¤W¨Ó¯d¨¥¡I

¤p§Ì±N³o¬qµ{¦¡®M ...
syuan µoªí©ó 2010-7-21 22:53



²{¦b¥Îªº¬O¤£¬OÁÙ¬O³o¥y?
StrFile = Dir(FS & K & "-*.pdf")
¬Oªº¸Ü¥i¥H§ï¦¨³o¥y¸Õ¸Õ
StrFile = Dir(FS & "*" & K & "-*.pdf")
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

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

TOP

¡yK = TextBox1.Text
FS = "H:\" & ListBox1.List(ListBox1.ListIndex) & "\" ¡z
³o¬q§ï¦¨ ...
kimbal µoªí©ó 2010-7-13 22:08



·PÁÂkimbal¤jªº±Ð¾Ç¡I

¤p§Ì³o´X¤Ñ¤@ª½¦b¦£§Oªº®×¤l¡A©Ò¥H´N¨S®É¶¡¤W¨Ó¯d¨¥¡I

¤p§Ì±N³o¬qµ{¦¡®M¨ìµ{¦¡¸Ì¡Aµo²{¦³ÂI©Ç©Çªº¡I

¦b¿é¤J¸¹½Xªº®É­Ô¡A¨Ã¨S¿ìªk©¿²¤¥DÀɦW«eªºxxx¨Ó¥´¶}pdfÀÉ¡]¨Ò¦p¥DÀɦW¬°ABC 1111-1990.pdf)

¤´»Ý§¹¥þ¿é¤J¥DÀɦWªº¥þ¦W¤~¥´ªº¶}¡I

²{¦b¥¿¶Ë¸£µ¬³o¬q»yªk¡A¤£ª¾¸Ó«ç»ò­×§ï¡ã¡ã¡ã

°¾°¾²{¦b¤âÀY¤W¤S¦³§Oªº®×¤l¦b¨«¡A¹ê¦bÅý§Ú¨S¿ìªk±M¤ßªº·Q»yªk¡ã¡ã¡]¤µ¤Ñ¶}·|«á¤S¦³ªF¦è­n§Ë¤F¡D¡D¡D¡D¡D¡^
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

¥»©«³Ì«á¥Ñ kimbal ©ó 2010-7-13 22:12 ½s¿è
¤£¦n·N«ä¡A¤p§Ì¤S¨Ó°Ý°ÝÃD¤F¡ã¡ã

¤p§Ì·Q»s§@¤@­Ó¿é¤J¸¹½X«á¡A¦A«ö¤U«ö¶s®É¡A·|¥X²{¸Ó¸¹½XªºPDFÀÉ

¦p¹Ï ...
syuan µoªí©ó 2010-7-3 12:23



   
¤U­±¤Þ¥Î¥Ñsyuan¦b 2010/07/14 00:27am µoªíªº¤º®e¡G
·PÁÂkimbal¤jªº±Ð¾É¡]³o´X¤Ñ¦b§Ë§OªºªF¦è¡A©Ò¥H¨S¥ß§Y¦^ÂС^
¤p§Ì±N³o¬q»yªk®M¦bµ{¦¡¡Aªº½T¯à±Npdf¥´¶}
¦ý¤p§Ì¤Sµo²{¨â­Ó°ÝÃDÂI¡J
1.¦pªGpdfªº¥DÀɦW¸Ì¡A¦³¡y1234-2010.pdf¡z¡B¡y4321.pdf¡z»P¡y1234-1-2010.pdf?...


¡yK = TextBox1.Text
FS = "H:\" & ListBox1.List(ListBox1.ListIndex) & "\" ¡z
³o¬q§ï¦¨¦p¤U

¡ySelect Case ListBox1.ListIndex
Case 0
K = TextBox1.Text
FS = "F:\xxxx\´ú¸Õ¥Î\¥Ò\"
Case 1
K = TextBox1.Text
FS = "F:\xxxx\´ú¸Õ¥Î\¤A\"
Case 2
K = TextBox1.Text
FS = "F:\xxxx\´ú¸Õ¥Î\¤þ\"
End Select¡z

1. ¦pªG¦³¦h©ó1­ÓÀÉ
StrFile = Dir(FS & K & "-*.pdf")
    If StrFile = "" Then
        MsgBox "§ä¤£¨ìÀÉ®×"
    End If
    Do While StrFile <> ""
        If StrFile <> "" Then
            ActiveWorkbook.FollowHyperlink  FS & K & StrFile
        End If
        StrFile = Dir
    Loop

2. ¸Õ¸Õ,
FS & "*" & K & "-*.pdf"

´N¬O§ä  "F:\xxxx\´ú¸Õ¥Î\x\" + ¥ô¦ó¦r + textbox¤Wªº¦r + - +  ¥ô¦ó¦r + '.pdf' ªº·N«ä
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

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

TOP

¥»©«³Ì«á¥Ñ syuan ©ó 2010-7-3 14:33 ½s¿è

¤£¦n·N«ä¡A¤p§Ì¤S¨Ó°Ý°ÝÃD¤F¡ã¡ã

¤p§Ì·Q»s§@¤@­Ó¿é¤J¸¹½X«á¡A¦A«ö¤U«ö¶s®É¡A·|¥X²{¸Ó¸¹½XªºPDFÀÉ

¦p¹Ï¤U


»¡©ú¡G·í¤W¤èªºLISTBOXÂI¿ï«á¡]§YEXCEL¤U¤èªºSHEET¦WºÙ¡^¡A¨Ï¥ÎªÌ¦A¿é¤J·Q¬d¸ßªº¸¹½X¡AVBA´N·|¨Ì¿é¤Jªº½X½X¡A¨Ó·j´MµwºÐ¸ô®|¤UªºPDFÀÉ

¤p§Ì¹ê¦b¤£ª¾¹D¸Ó¦p¦ó¼g¡A¤w¸g¦bºô¸ô¤W§ä«Ü¤[¡A¦ý³£¨S§ä¨ìÃþ¦üªº»yªk¡ã¡ã

¥u¦n¤W¨Ó½Ð¯q¦U¦ì¡AÁÙ±æ¦U¦ì¥ý¶i¤£§[±Ð¾É¡A¯¬¦³­Ó´r§Ö°²´Á¡I

³o¬OEXCELªºVBAÀÉ®× Test.rar (23.88 KB)
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

³y¦¨¤j®a§xÂZ¡A¯u¬O¤Q¤À©êºp¡I

°_¦]¬O¤p§Ìª½±µ±NxlsÀɪº°ÆÀɦW¡A§ï¦¨rarªºÀ£ÁYÀÉ¡I

¦b²Ä¤@©«§Ñ¤Fµù©ú¡Aµ²ªGÅýPD961A¤j»~¸Ñ¡A¯u¬O¤£¦n·N«ä¡I

¤U¦¸¤p§Ì·|±N¸ÓÀÉÀ£ÁY«á¦A¤W¶Ç¡ã¡ã
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD