- ©«¤l
- 22
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 30
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7.0
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-4-6
- ³Ì«áµn¿ý
- 2024-3-31
|
[µo°Ý] ³sÄò§ì¨ú³W«h§ïÅܤ§ºô§}¸ê®Æ
¥»©«³Ì«á¥Ñ pideo ©ó 2014-4-9 23:00 ½s¿è
¥ý·PÁ¤@¤U³oÃ䪺°ª¤â¤j¤j¹ï¤p§Ìªº«ü¾É
¤p§Ì¥Ø«e·Q§â
¥H¤Uºô§}ªº¤º®e§Ë¨ìexcel¸Ì
http://jdata.yuanta.com.tw/z/zc/zc3/zc3_2885.djhtm
¨ä¤¤2885¬OÓÅܼƦ¹ÅܼƪºÈ±N©ñ¦bsheet1 ¤¤ªºA¦Cªí¸Ì
¥ý²³æªºÀH«K¼g¨âӼƦÛA1= 2885 ¡A A2=1907
µM«á¤p§Ì·QÅýºô§}³¡¤Àªº¼Æ¦r¨Ì·ÓSheet1 ¸ÌªºA¦C¦Û°Ê¤@Ó¤@ÓŪ¨ú«á®M¤Wìºô§}2885ªº¦ì¸m
µM«áÅý¥L¦Û¤v§ì¨úºô¶ªí®æ«á©ñ¨ìSheet2¸Ì
¦]¦¹¤p§Ì¼g¤F¥H¤Uµ{¦¡
¦ý¬O´ú¸Õ®É®Ú¥»µLªk°õ¦æOTZ
¥i§_½Ð°ª¤â¤j¤j«ü¾É
·P®¦- Sub test()
- Dim x As Integer
- Set s = Worksheets("sheet2")
- For i = 1 To 2
- x = Worksheets("sheet1").Cells(i, 1)
- With s.QueryTables.Add(Connection:= _"URL;http://jdata.yuanta.com.tw/z/zc/zc3/zc3_" & x & ".djhtm", _ Destination:=s.Range("$A$1"))
- .Selection = EntirePage
- .Formatting = None
- .PreFormattedTextToColumns = True
- .ConsecutiveDelimitersAsOne = True
- .SingleBlockTextImport = False
- .DisableDateRecognition = False
- .DisableRedirections = False
- End With
- Next
- End Sub
½Æ»s¥N½X |
|