首页 > 技术文章 > vbs操作IE对象

u0mo5 2014-05-28 12:18 原文

Dim fso,filepath,i 'Dim ExcelBook,ExcelSheet,MyExcelBook,MyExcelSheet Dim ie Set ie=WScript.CreateObject("internetexplorer.application")
ie.Navigate "http://www.google.com/" MsgBox "等待一下" ie.Visible = True ie.Document.body.all.q.Value = "abc" ie.Document.body.all.btnG.Click MsgBox (ie.LocationURL) Set IEDocument = ie.Document msgbox IEDocument.body.innertext

推荐阅读