¼ÐÃD:
[µo°Ý]
±qÃÒ¥æ©Ò§ì¨ú¦¬½L»ùªºVBA¤èªk½Ð¯q
[¥´¦L¥»¶]
§@ªÌ:
bioleon69
®É¶¡:
2016-9-18 04:53
¼ÐÃD:
±qÃÒ¥æ©Ò§ì¨ú¦¬½L»ùªºVBA¤èªk½Ð¯q
¥Ø«e¤p§ÌÁÙ¬O¥Î³Ì°ò¥»ªºweb¸ê®Æ¶×¤J(YAHOOªÑ¥«)
²{¦b§ìYAHOOªºªÑ²¼
¶W¹L10µ§¥H¤W³t«×¤w¶}©l¦³ÂILAG¤F
·Q½Ð±Ð¤j¤j̳£¬O¥Î¤°»ò¤èªk§â¨C¤éªº¦¬½L¸ê®Æ(ªÑ»ù³¡¤À)
¶×¤J¨ìEXCEL¸Ì±ªº?
¥Dn¬O·Q¬Ý¦U¦ì¤j¤j³£¬O¥Î¤°»ò¤èªk?(ÃÒ¥æ©Òªº)
·|¤ñ¸û¤è«K,§Ú³o¼Ë¤@µ§¤@µ§ªº¦n¹³¤£¬O«Ü¦n¥Î
[attach]25258[/attach]
§@ªÌ:
c_c_lai
®É¶¡:
2016-9-18 07:48
¦^´_
1#
bioleon69
±N¨C¤é¸ê®Æ¤@¤@¦s¤J SQL ¸ê®Æ®w´N¤£¦Ü©ó LAG ¤F¡C
»Ýn®É¦A±q SQL ¸ê®Æ®w´£¨ú¸ê®Æ¡C
§@ªÌ:
jackyq
®É¶¡:
2016-9-18 10:07
1¦¸§ì1µ§ vs. 1¦¸§ì1000µ§
§@ªÌ:
bioleon69
®É¶¡:
2016-9-18 17:32
¦^´_
2#
c_c_lai
«ç»ò¨Ï¥Î©O?
¤j¤j¬O§_Ä@·N¤À¨É±zªº¤è¦¡~~
§@ªÌ:
c_c_lai
®É¶¡:
2016-9-18 21:09
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-9-18 21:13 ½s¿è
¦^´_
4#
bioleon69
[attach]25262[/attach]
§@ªÌ:
c_c_lai
®É¶¡:
2016-9-18 21:46
¦^´_
4#
bioleon69
[attach]25264[/attach]
[attach]25265[/attach]
§@ªÌ:
ketrddem
®É¶¡:
2016-9-18 23:14
¥»©«³Ì«á¥Ñ ketrddem ©ó 2016-9-18 23:23 ½s¿è
¥Î¹d¦ëºô¨Ó§ì¾ú¥vªÑ»ù
²Ä¤@±iªí¬°¡u²M³æ¡v¡A³]©w§An§ì¨úªºªÑ²¼²M³æ¡A²Ä¤@¦C¬°ªÑ¸¹¡A²Ä¤G¦C¥H«á¨Ì§Ç¬°§AªºªÑ²¼¥N¸¹
·s¼W¤@Ó¼Ò²Õ
SUB TEST()
Dim ªÑ¸¹ As String
Dim ¬d¸ß°_©l¤é As Date
¬d¸ß°_©l¤é = sheet1.Cells(1, 4)
For i = 2 To sheet1.Cells(Rows.Count, 1).End(xlUp).Row
ªÑ¸¹ = sheet1.Cells(i, 1).Value
On Error Resume Next
If Sheets(ªÑ¸¹) Is Nothing Then '«ü©wªº¤u§@ªí¤£¦s¦b
Sheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Name = ªÑ¸¹
End If
Dim QT As QueryTable
Dim WebAddress As String
WebAddress = "http://www.cnyes.com/twstock/ps_historyprice/" & ªÑ¸¹ & ".htm"
With ThisWorkbook.Worksheets(ªÑ¸¹)
.Cells.Clear
Set QT = .QueryTables.Add("URL;" & WebAddress, .Range("$A$1"))
End With
With QT
.PostText = "ctl00$ContentPlaceHolder1$startText=" & ¬d¸ß°_©l¤é
.WebTables = "2"
.Refresh False
End With
Next
END SUB
¥H¤W¤èªk¬OWEB¬d¸ß¡A¨Ì¦¸±N²M³æªºªÑ²¼¾ú¥vªÑ»ù§ì¤U¨Ó¡A³t«×ÁÙOK¡C
¥t¤@ºØ¤èªk¬O¥Îwinhttp5.1ªº¤èªk¡A¯ÊÂI¬O¥u¾A¥Î32¨Ì¤¸¡A³t«×¤ñ¸û¹L¡Awinhttp5.1ªº¤èªk¤ñ¸û§Ö¡A¦ý¨ä¹ê®t¤£¤F¦h¤Ö¡C
¾ú¥vªÑ»ù§ì¤U¨Ó«á¡A´N¥Î¥t¤@Ó¤u§@ï¡A¨Ï¥ÎSQL»yªk¥h§ì³o¸ê®Æ¡A¦A°µpºâ¡CSQL»yªk¥h§ì¡A¨ä¹ê¤]«Ü§Ö¡A¤§«á°µpºâ¡A«Øij¤£nª½±µÅª¼gRANGE¥hpºâ¡A¦Ó¬Oª½±µ¥Î°}¦Cpºâ¡A®Ä²v¤~·|°ª¡C
§@ªÌ:
bioleon69
®É¶¡:
2016-9-18 23:22
[attach]25267[/attach]
¦^´_
8#
ketrddem
§A¦n,½Æ»sµ{¦¡½X¨ìexcelµo²{µLªk°õ¦æ
XD
§@ªÌ:
ketrddem
®É¶¡:
2016-9-18 23:25
¥»©«³Ì«á¥Ñ ketrddem ©ó 2016-9-18 23:27 ½s¿è
¦^´_
9#
bioleon69
´¡¤J¼Ò²Õ
»yªk¼g¨ì¼Ò²ÕùØ
µM«án³]©w¤@Ó¬d¸ßªº°_©l¤é¡A§Ú¬O¼g¦bcells(1,4)
[attach]25268[/attach]
§@ªÌ:
bioleon69
®É¶¡:
2016-9-18 23:31
¦^´_
10#
ketrddem
¦³ÂI½ÆÂø ¬Ý¤£¤ÓÀ´XDD
¬O§_¥i¥HªþÓÀÉ®×?
§@ªÌ:
ketrddem
®É¶¡:
2016-9-18 23:34
¥»©«³Ì«á¥Ñ ketrddem ©ó 2016-9-18 23:36 ½s¿è
¦^´_
11#
bioleon69
èªþ¤W¥h¤F¡A¦ý»¡¹ê¦bªº¡A§ì¾ú¥vªÑ»ù¨SÔ£¥Î³Bªº¡A°£«D§A¦³¿ïªÑÅÞ¿è¡A±NÅÞ¿è¼g¦¨§PÂ_¦¡¡A¥h¬D¥X§AnªºªÑ²¼
¯u¥¿Ãøªº¤Ï¦Ó¬O¿ïªÑÅ޿誺¼gªk
§Ú¥Ø«e¼g¥X¥Î¾ú¥vªÑ»ùºâ¥XkdÈ¡A¥¬ªL³q¹D¡A§¡½uµ¥µ¥µ¥
´N¬O¥dÃö¦b¦p¦ó±N¿ïªÑÅÞ¿è¥Î»yªk§e²{¥X¨Ó
§@ªÌ:
bioleon69
®É¶¡:
2016-9-19 00:02
¦^´_
12#
ketrddem
¤]¤Ó²r!!(»·¥Ø
¤£¹L¤p§Ìªº»Ý¨D¥un¯à§ì¨úÃÒ¥æ©Òªº¦¬½L»ù§Y¥i
ÁÙ¤£¥Î¨ì³o»ò°ª¶¥ªº¾ú¥vªº¸ê®Æ
Àɮקڴú¸Õ¹L,Ū¨ú¦ü¥Gªá¤Ó¦h®É¶¡
¥u»Ýn³Ì·s¦¬½L»ùªº¸ê®Æ§Y¥i
¦]¬°ÃÒ¥æ©Ò³oÓºô¯¸ªººô§}¨S¿ìªk¸òYAHOO¤@¼Ë«á±¥´ªÑ¸¹´N¦n
©Ò¥H·Q°Ý°Ý¬Ý¦U¦ì¤j¤j¬O«ç»ò§ìªº...
§@ªÌ:
ketrddem
®É¶¡:
2016-9-19 00:15
¥un¦¬½L»ù¡A´N§ó²³æ¤F
DDE¼g¤@¼g´N¦n¤F
§@ªÌ:
jackyq
®É¶¡:
2016-9-19 00:24
³o¸Ì¤£¬O´N¦³§Öªù
https://tw.stock.yahoo.com/s/list.php?c=tse&pid=1
§@ªÌ:
bioleon69
®É¶¡:
2016-9-23 19:19
¦³¿ìªk¤@¦¸¥þ³¡Åã¥Ü¶Ü
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)