- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- SS
- ³nÅ骩¥»
- SS
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-5-1
- ³Ì«áµn¿ý
- 2019-5-3
|
¦U¦ì¤j¤j ¦n
¤p§Ì¬°·s¤â¡A²{¦æ¸I¤W°ÝÃDÂI
¥i§_À°¦£¬Ý¬Ýµ{¦¡½X¦³¦ó¿ù»~
°ÝÃDÂI¬°¡G
·íºô§}ª½±µ¿é¤J¥N½X®É¡A¥i¶¶§QÂ^¨ú§Únªº¸ê®Æ
http://www.wantgoo.com/Stock/report/basic_cfs?StockNo=1101
¦ý¬O¡A·í§Ú§â¥N½X´«¦¨°Ñ¼Æ®É¡A´NÂ^¨ú¥¢±Ñ¤F
http://www.wantgoo.com/Stock/report/basic_cfs?StockNo=" & stockno
µ{¦¡½X¦p¤U¡G
Sub test()
For count001 = 1 To 1 Step 1
stockno = Worksheets("²M³æ").Range(Chr(65) & count001)
ActiveWorkbook.Worksheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Name = Worksheets("²M³æ").Range(Chr(65) & count001) & " " & Worksheets("²M³æ").Range(Chr(66) & count001)
URL = "URL;http://www.wantgoo.com/Stock/report/basic_cfs?StockNo=" & stockno
With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=Range("A1"))
.AdjustColumnWidth = False
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "1"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Next count001
ActiveWorkbook.Save
End Sub |
|