ÃÒ¥æ©Ò¥þ³¡¤W¥«ªÑ²¼¥æ©ö©ú²Ó¤U¸ü
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 22# white5168
µU¡C¡C¡C¡C¡C¬ðµM·N·|¹L¨Ó¡A¥ý«e³o¼Ë´ú¸Õ
W¤j³o¤ä,¥ú¦b³o¸Ìhttp://bsr.twse.com.tw/bshtm/bsMenu.aspx?
¨ú¤£¨ì¶¼Æªº®ÉÔ,n¨êÓ¦n´X¦¸µe± (ºô¶¶}±Ò§¹¦¨»P§_?)
¥ú¬O³o¼Ë¨êªº¤è¦¡,½ä¦ºªº¾÷²v§ó°ª
·|³y¦¨¶ë¨®!!!!¦y®p®É¬q§ó·|°ô¦í |
|
|
|
|
|
|
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 30# white5168
¨S¿ù§r!´ú¸Õµ²ªG¦p¦P§A¼gªº
·íºô¶¶}±Ò¦³°ÝÃD®É,¤Î»·ºÝÃÒ¥æ©Ò¦øªA¾¹¹L¦£¸L®É,±N·|¶i¦æRetryª½¨ì¨ú±o¸ê®Æ
§A¥áÓ¨S¦³¥æ©ö¶R½æªº¥N¸¹µ¹¥¦,´N¨ê¤£°±¤F
¨Ò¦p§NªùªºªÑ²¼,¥¦ªº¥æ©ö¶q¦³¥i¯à¬O " 0 "
´N·|¥X²{µL¥æ©ö¸ê®Æ,·íµM´N¨ú¤£¨ì "¶¼Æ"
§A»¡¦Û¤vµ{¦¡n¨ê´X¦¸,§A·íµM¤ñ§Ú²M·¡
§Ú´ú¸Õ®É,¥ú¬Ý¥¦¤£Â_¦P¤@Ó¥N¸¹key in ¥N½X --->´N¶Ì²´¤F
µe±¤£Â_¨êÓ¦n´X¦¸,¤~·|¸õ¥X¦^°é (Do...Loop ¤]¤£¤Ö)
¦h¨êN¦¸,¤]¥Nªí¥d¦b¨º¸Ì
¶ë¨®ì²z´N¬O "§Ú¶ë¦í,¤j®a¤]¶ë¦í!"
¸Õ¸Õ§ïpostdata¦n¤@ÂI!
¤j®v!! |
|
|
|
|
|
|
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 32# white5168
¤£¬O³á!
ª©¤j¥ý«e¦³±j½Õ,VBA¼gªk,¤ÓºC--->¤j®a°ô¦b¨º¤§Ãþªº
·|¼vÅT¤j®a§ì¸ê®Æ---->¥R¤Àµo´§¤F¤½¼w¤ß
¦Ó§Ú¥u¬O¦h¬Ý¦h¾Ç,¼W¥[¦Û¤v¹ïVBAªº¾Ç²ß¦Ó¤w
è¦n´ú¸Õ¨ì§ì¶¼Æ¨º³¡¥÷,W¤j¤]¬O¦³³]p¤Wªºª¼ÂI
è¦n¹HI¤F§A¥ý«eªº²z©À
§Ú¥u¬O´£¿ô¤Î«Øij!¨S±j¢§A§ï
§Ú¨Ã¨S¦³¨Ì¿à§A¼gªº----->(¾Ç²ßªÌªº¤ßºA)
W¤jªº¥\¤O¬Æ±j
§Ú·íµM¬OªÃ«ù¾Ç²ßªº¤ßºA
¥un¦³¤HÄ@·N¤À¨É;³£¬O°Ñ¦Ò¤Î¾Ç²ß
¨S¦³¤@©w½Ö¦n½ÖÃa
§O»~·|! |
|
|
|
|
|
|
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 32# white5168
§Ñ¤Fªþ¤W§A©Ò¿×ªº (¤£¦s¦bªÑ²¼)
´ú¸Õ¹Lµ{
|
|
|
|
|
|
|
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦§r!¤j®a~^__^~
¦^´_ 36# white5168
¥Ø«e¸ÓExcel VBA ¥æ©ö©ú²Ó.xls ¬°V1.0.0.1 T01
¨ä¥\¯à¦p¤U
1.¶}±Ò®É·|¦Û°Ê±N·í¤Ñªº¤é´Á³]©w,¨Ã±N±ý¨ú±oªº¤W¥«ªÑ²¼ID½s¸¹«ÀY¶}©l(³o¸Ì¬O2)
2.¤U¸üÀx¦s¥æ©ö©ú²Ó¤é´Á»P¤W¥«ªÑ²¼ID½s¸¹,¥i¦Û¦æ³]©w
«ÂI¡G
1¡B¨ä¹ê§Ú¨Ã¨S¦³n³x¤f¦Þ¤§§Ö¡FW¤f±C¤ßªº¦¨¤À©~¦h¡C¡@¥u§Æ±æ¢å¤j¯à°÷ÁקK¡e¤@¨¥°ó¡f¡AÅ¥¤£¶i§O¤Hªº«Ø¨¥¡F«o¦Ñ·R¨í§O¤HÄG¤l¡C¡@¡¯¡e±Ð¾Ç¬Ûªø¡f¡Õ---ÁÙ¬O¨º¥y¡A¦A¦¸°e§A¡AÁöµM§Ú³Ì¨S¸ê®æ»¡³o¥y¡C
2¡B¦U¤j°ª¤â³£¦³¦Û¤vªºÅÞ¿è,µ{¦¡°j¸ô--->¤@¤sÁÙ¦³¤@¤s°ª¡C <----¦Û¤v¥~¦æ,©Ò¥H§Ú¸ÓÀRÀR¾Ç²ß¡C(³oÂI!§Ú¦b³o¸Ì¯uªº«Ü [¦h¼L] ,©Ò¥H¥ý¸ò¦U¦ì¬Ý¾»¡¹ï¤£°_!)
3¡Bª©¤W¤£¬OÄv§Þ³õ¡A§Ú¬O¨Ó¾Ç²ß ¤Î ´M¨D [¦n¤ßªº¤j¤jÌ] ¥i¥H¾A®Éªº¬@±Ï§Ú¡C
4¡B§Ú¬Ý¨£³Â»¶®a±Úªº¥Î¤ß¸gÀç¡F©Ò¥H«Ü·P®¦³oӾDzߪŶ¡¡C
¦U¦ì§ì¸ê®Æªº®ÉÔ¥i¯à¬O¦b¦y®p®É¬q,´N¬O¤j®a¤@°_§ì¸ê®Æ,·|¾ÉP»·ºÝ¦øªA¾¹ªºªA°È¸ê·½¤j®a·m
¢Þ¢á¡G¬ÝªºÀ´±o¡A³£À³¸ÓÀ´§AªºDo ....Loop ·|³y¦¨¶ë¨®°ÝÃD¡C¡@§Ú¥u¬O·Q¡¢±¢±¼Ó§A¼gªº¨º¬q¡Fè¦n»P§Aªº°j¸ô³]p¬OIÂ÷ªº¡I¡@----¡Ö´£¿ô¦Ó¤w¡I§O¥Í®ð¡C
¡¯¡¯¡¯¡¯¡¯¡¯¡¯¡¯¡@¯uªº§O¥Í®ð¡APlease!!! ¦]¬°©È¤j¤j¥Í®ð¡A©Ò¥H¦Û¤v«Ü¤p¤ßÁlÁlªº¡C¡@ì½Ì§Ú§a¡I¡Ð¡Ð¡Ð¡Ö¤£µM§Ú·|ú³á¡I ¡¯¡¯¡¯¡¯¡¯¡¯¡¯¡¯
¦^´_ 37# lalalada
¶â¶â!§Aªº«Øij¤Î´£ÂI¡A¦¬¨ìÅo¡I§Ú·|©ñ¶i«ä¦Ò¸ÌTry¬Ý¬Ý
§Ú¥Ø«e°µªk¬O¤U¸ü¦^¨Ó¡A¦A¥Î¥¨¶°§PŪµL¸ê®Æªº§R±¼´N¦n¡C---->ÁקK¹Lªø®É¶¡±¾¸ü¡A¼W¥[¦MÀI©Ê¡C¡]¤j²¤¬Ý¹L³o¼Ëªº¤ÀªR¡f
¦^´_ 38# GBKEE
¡@GBKEE¡@¤j¡A¦³±z¯u¦n¡I
·PÁ§A̳o¨Ç¼ö¤ß¥B¯u¥¿¼Ö·N¨ó§Uªº¤j¤jÌ¡I
®É±`¨ó§U§Ú̸ѨM§xÂZ
¸òª©¤W¦U¦ì¤j¤jÌÄ~Äò¾Ç²ß¡A¦³³Ò§A̤F¡C |
|
|
|
|
|
|
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 41# GBKEE - '¨ú±o¶¼Æ ; Á׶}¥u¬° [¶¼Æ] ¨ú±o¦Ó«÷©R¨ê¸Óºô¶;³y¦¨¶ëÀt http://bsr.twse.com.tw/bshtm/bsMenu.aspx?
- strURL = "http://bsr.twse.com.tw/bshtm/bsMenu.aspx?" & _
- "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTczNDk4NzY0Mg9kFgICAQ9kFgwCBQ8WAh4JaW5uZXJodG1sBQoyMDEyLzA4LzAxZAIGDxYCHwAFCDIwMTIwODAxZAIIDw8WBh4JRm9udF9Cb2xkZx4EXyFTQgKEEB4JRm9yZUNvbG9yCj1kZAIKD2QWAgIBDw9kFgIeB09uQ2xpY2sFHGphdmFzY3JpcHQ6YnV0Q2xlYXJfQ2xpY2soKTtkAgwPDxYGHwFoHwIChBAfAwpHZGQCDg8PFgIeB1Zpc2libGVoZGRktxLZGMAybpsQ2UGpZGNtbwAAAAA%3D&__EVENTVALIDATION=%2FwEWCALzjPG5CALjpuXcAwKN4Ij0CwLB5ZfoCQLjk6TKBwKY8en5CwLdkpmPAQL6n7vzC9kuc7umJfLwqKqibgdx3poAAAAA&HiddenField_spDate=&HiddenField_page=PAGE_BS&txtTASKNO=" & fileIdx & "&hidTASKNO=&btnOK=%E6%9F%A5%E8%A9%A2"
- With xml
- .Open "GET", strURL, 0
- .send
- Do While xml.readyState <> 4
- Loop
- x = Split(Split(.responseText, "sp_ListCount"">")(1), "</span></b>")(0)
- End With
- '±N¶¼Æ¥áµ¹¤U¸ü¥h³B²z
- '¤U¸üxls
- With ActiveSheet.QueryTables.Add(Connection:= _
- "URL;http://bsr.twse.com.tw/bshtm/bsContent.aspx?StartNumber=" & fileIdx & "&FocusIndex=All_" & x _
- , Destination:=Range("A1")) '©ñ¸m¦ì¸m< ----->¥iÅÜ
- .Name = "¨é°Ó"
- .BackgroundQuery = True '¨ê·sªð¦^¬d¸ß(°õ¦æ§ó·s)
- .RefreshStyle = xlOverwriteCells '= xlOverwriteCells 'Âл\ìÄæ¦ì = xlInsertDeleteCells '´¡¤J·s¸ê®Æ,ì¸ê®Æ¥k²¾
- .RefreshPeriod = 0 '¦Û°Ê§ó·s®É¶¡ ¥H¤À¬°³æ¦ì 5¥Nªí¨C5¤ÀÄÁ§ó·s¤@¦¸ 0¥Nªí¤£¦Û°Ê§ó·s
- .WebSelectionType = xlSpecifiedTables '«ü©wÃþ«¬= xlEntirePage ¾ã¶ = xlSpecifiedTables ªí®æ = xlAllTables ©Ò¦³ªí®æ
- .WebFormatting = xlWebFormattingNone '= xlWebFormattingNone ¤£«O¯d³sµ²¤Î¼Ë¦¡ = xlWebFormattingRTF «O¯d³sµ²¤Î®æ¦¡³]©w
- .WebTables = "5,""table2""" '«ü©w¨ú±o¤§ªí®æ »P .WebSelectionType = xlSpecifiedTables°t¦X = "1,2," ©Î ="5,""table2""" ©Î = """table1"",""table2"""
- .WebDisableDateRecognition = False '¤é´ÁŲ§O=False ¸T¥Î =True ¨Ï¥Î
- .Refresh BackgroundQuery:=False '¨ê·sªð¦^¬d¸ß(°õ¦æ§ó·s)
- End With
½Æ»s¥N½X §Ú¬O¯uªº¨ØªAW¤jªº¥\¤O,§¹¥þ¨S¦³§ð°P·N«ä¡C
§Ú«Üµæ,¬Ý¹L§Ú¥ý«eªºµo°Ý´Nª¾¹D§Ú¬Oµæ³¾¤@Ó¡F®É±`³Ò·Ð¦U¦ìÀ°¦£¸Ñ¨M¡e«Ü·P®¦¡f¡C
¥u¬O[´£¿ô]¨ê¶±°ÝÃD¡A¤]¬O¥t¤@Ӷ먮ªº§xÂZ¡C [³o«j±j¥iºâ (±Ð¾Ç¬Ûªø) ªº¤@³¡¥÷]
¦Ü©ó¼g¡F¦]¬°ÁÙ¦A¤£Â_ Try ©óVBA «Ü¯¥Íªº¥Í¦r¡C¨S¨ì¥i¥HÄmÁ઺³¡¥÷¡C
²{¦b¥¿¦b«ä¦Òªº°ÝÃD¬O , ¦]¬°³B²zxls¦sÀÉ¡F¤]±¾¸ü¬Û·í¤[¡C©Ò¥H§ï¥Îhtm¤U¦^¨Ó¦A¤@°_³B²z¡C
¬ÛÃö¾Ç²ß«ä¸ô¤]¬O¦bª©¤W¡A¦³¸ñ¥i´`¡C
http://forum.twbts.com/thread-7336-1-1.html
http://forum.twbts.com/viewthrea ... p;extra=&page=2
¼gµ{¦¡¨S¦³µ´¹ïªº½Ö¦n½Ö¤£¦n
¥i¥H¦A¤£¦Pªº«ä¸ô¤¤¡F¾Ç¨ì§ó¦hªº¥i¯à©Ê
³oÂI¯uªº«Ü´Î¡I --->¬Û«H«Ü¦hª©¤j³£¦³³oºØ ªì°J
©Ò¥H¼Ö·N¦b¦¹À°§U¹³§Ú³o¼Ëªºµæ³¾
§Ú¥Ø«eÁÙ¨S¨£¹L¦]¬°¦Û¤v¼gªºÄê
§ðÀ»§Úªº,³£¬O¾A«×µ¹§Ú¨ä¥L§ó¦hªº°Ñ¦Ò
³o¹ï©ó§l¦¬¤£¦Pªº«äºû
´£¨Ñ¤F«Ü¦nªº»²§U
¤£¬O¶Ü?!
¦b¦¹!·V«Án©ú~~~¤£¦A¦^À³W¤jªºµ{¦¡´ú¸Õµ²ªG©Î´£¥X°ÝÃD
¦]¬°,§Ú¤]©È¨ü¶Ë§r!
~~~¥¿¦bú!~~~ |
|
|
|
|
|
|