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

[µo°Ý] ºô­¶Â^¨ú¸ê®Æ

[µo°Ý] ºô­¶Â^¨ú¸ê®Æ

¦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

·j´M¤§«e«e½ú­Ì¤å³¹«á¡A¤w¸Ñ¨M¡A­Y¦³¦û¨ìªÅ¶¡½Ð§R°£¡C
Thanks¡I

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD