| ©«¤l117 ¥DÃD34 ºëµØ0 ¿n¤À155 ÂI¦W0  §@·~¨t²Îwindows XP ³nÅ骩¥»OFFICE 2010 ¾\ŪÅv20 ©Ê§O¨k µù¥U®É¶¡2010-5-19 ³Ì«áµn¿ý2024-8-29 
 | 
 «ç»ò±µ¦¬ºô¶¸ê®Æ
| ¦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
 | 
 |