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

«ç»ò±µ¦¬ºô­¶¸ê®Æ

«ç»ò±µ¦¬ºô­¶¸ê®Æ

¦bºô¸ô¤W§ä¨ì³o­Ó
¬õ¦â¬O¿ý»s¥[¤Jªº,«ç»ò¥i¥Hµn¤Jºô­¶,¦ý«ç»òµLªk¨Ï¥Î·s¼Wweb¬d¸ß
»Ý­n«ç»ò­×§ï?ÁÂÁÂ~
Sub macro1()
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate "http://www.cnyes.com/_mem_bin/FormsLogin.asp?http://www.cnyes.com/global/gl_idx.asp"
Do Until .Readystate = 4
DoEvents
Loop
.Document.f1.cn.Value = "id"
.Document.f1.UserPASSWORD.Value = "password"
.Document.f1.submit
End With
  With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://www.cnyes.com/global/gl_idx.asp?type=1", Destination:=Range("A1") _
        )
        .Name = "gl_idx.asp?type=1"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlAllTables
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .Refresh BackgroundQuery:=False
    End With

End Sub
ªì¾ÇªÌcolor

??
«ç»ò³£¨S¤H
ªì¾ÇªÌcolor

TOP

        ÀR«ä¦Û¦b : ¡i°±º¢¤£«e¡A²×µL©Ò±o¡j¤H³£°g©ó´M§ä©_ÂÝ¡A¦]¦Ó°±º¢¤£«e¡FÁa¨Ï®É¶¡¦A¦h¡B¸ô¦Aªø¡A¤]¤FµL¥Î³B¡A²×µL©Ò±o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD