错误从web元素更新到表单文本框

时间:2016-12-29 18:58:09

标签: html excel vba

我有一个excel用户表单,我需要使用网站上的数据进行更新。 从网站获取数据并完成验证!但是当我尝试将数据更新为excel表单时,它仍然是空白的!

forms!UserForm1!envelope = HTMLdoc.all.no_projet.Value
forms!UserForm1!envelope.Refresh
MsgBox HTMLdoc.all.no_projet.Value' this shows the good data and is valid
MsgBox forms!UserForm1!envelope  ' this shows as empty

我还尝试在表单文本框的onchange事件中添加刷新无效。

Private Sub envelope_Change()
Me.Refresh

End Sub

离开太久了。

谢谢

皮特

0 个答案:

没有答案