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

¦p¦ó±Nºô¯¸¤ºªº¤é´Á°µ¦¨¦bexcel¥Î¦Û°Ê¿é¤J

On Error Resume Next
1: y = CLng(Application.InputBox(prompt:="¿é¤J¤é´Á,¤é´Á®æ¦¡(yyyymmdd)", Title:="¿é¤J¤é´Á"))
x = Left(y, 6)
If y = False Then Exit Sub
If Len(y) <> 8 Or Err Then GoTo 1
With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://www.twse.com.tw/ch/tradin ... NDEX/genpage/Report" & x & "/A112" & y & "ALLBUT0999_1.php?" _
        , Destination:=Range("b1"))
        .Name = "19"
        .FieldNames = True

TOP

        ÀR«ä¦Û¦b : ¬°¦Û¤v§äÂǤfªº¤H¥Ã»·¤£·|¶i¨B¡C
ªð¦^¦Cªí ¤W¤@¥DÃD