-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Here are all the new features Microsoft added to Excel in July 2025
By Usama Jawad96,
- 1 reply
- 0 views
-
Excel is getting a highly requested PivotTable feature
By Usama Jawad96,
- microsoft
- microsoft excel
- (and 5 more)
- 2 replies
- 0 views
-
Excel for the web finally gets crucial data refresh feature
By Usama Jawad96,
- 3 replies
- 0 views
-
Excel Formulas & Functions for Dummies (worth $21) free, for your email address ends today
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 0 views
-
Microsoft 365 Excel Formulas & Functions For Dummies, 7th Edition (worth $21) free download
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 0 views
-
Question
techmikeprog
I have been trying to use a Macro in VBA/Microsoft Excel to auto login to a web site automatically and fill in information into the web page. On the up side I'm able to do this on several different web sites (google, hotmail, etc); however, when I attempt to log in to a couple in particular web sites I receive an error. The message reads:
"System Error &H80010108 (-2147417848). The object invoked has disconnected from its client."
Again, I know the code is close to correct because this works on several web pages, but a couple others time out. After several days of researching I'm still not any closer to a solution. When running the code line-by-line, it appears as though VBA/Excel is loosing the webpage. I'm not sure if it's because the web site is encrypted or something else may be going on.
I've attached the code below and commented where the problem is. Do you have any thoughts why I may be having issues with this web site? Any thoughts would be greatly appreciated!!!
-Thanks
*****VBA SCRIPT*****
_______________________________
Sub WebPageStartup()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "https://enterpriseportal.disney.com"
Do '-Begins the problem when waiting for ready state to be complete
DoEvents
Loop Until IE.readyState = 4
HTMLDoc.all.USER.Value = "abc"
HTMLDoc.all.PASSWORD.Value = "123"
IE.document.getElementById("Enter").Click
End Sub
_______________________________
Link to comment
https://www.neowin.net/forum/topic/1334184-trouble-with-excel-macro-auto-login/Share on other sites
0 answers to this question
Recommended Posts