乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > VBA怎么自动填写网页表单-excel填写网页,excel快速网页填表

VBA怎么自动填写网页表单-excel填写网页,excel快速网页填表

作者:乔山办公网日期:

返回目录:excel表格制作




那就说重点

ie.document.forms(0).username.value=user_Name
ie.document.forms(0).normModPsp.value=user_Pass
ie.document.forms(0).password.value=user_Pass
ie.document.forms(0).submit()

0个表单的三个输入框里输入值,然后发送表单

点数据,点自网站。粘贴网址到地址栏,下面按提示操作就能完成。

如果希望能自动刷新,需要继续设置:在引入的数据区右击选“数据范围属性”,按图选择,最后确定。



可以实
通过 IE的属性
Set IE = CreateObject("InternetExplorer.application")
IE.Navigate url:="http://"
With IE.Document.Forms(0)
.all("ID").Value = IDVALUE
.all("PID").Value = PIDVALUE
End With

其他的自己加上去吧!
上面的
.all("ID")和.all("PID")请自己看一下HTML的代码,来修改吧

相关阅读

关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网