Run-time (8150002e) Automation Error

ercedwards

Board Regular
Joined
Apr 27, 2013
Messages
125
I have the following code that has worked fine for years on my Windows 8 PC but crashes with the title error on my Windows 10 PC.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Code:
Sub Download()
    Dim IE     As Object
    Dim html   As Object
    Dim objElementTR As Object
    Dim objTR  As Object
    Dim objElementsTD As Object
    Dim objTD  As Object
    Dim result As String
    Dim intRow As Long
    Dim intCol As Long
    Set IE = CreateObject("InternetExplorer.Application")                     [COLOR=#ff0000][B]<======= IT CRASHES HERE[/B][/COLOR]
[/FONT]
Has anyone been able to figure out how to solve this issue. I've tried everything I could find on this on the internet with no luck.

I'm slowly losing my mind over this (or maybe I already have)

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
This works for me (Excel 365 & Windows10)

Code:
Sub ie()
    Dim ie
    Set ie = CreateObject("InternetExplorer.Application")
    ie.Visible = True
    ie.navigate "https://www.google.co.uk/"
End Sub
 
Upvote 0
This works for me (Excel 365 & Windows10)

Code:
Sub ie()
    Dim ie
    Set ie = CreateObject("InternetExplorer.Application")
    ie.Visible = True
    ie.navigate "https://www.google.co.uk/"
End Sub

Unfortunately though NOT for me. Same error as before.

Thanks for trying.
 
Upvote 0
If you have Chrome installed
- amend path to match yours
Code:
Sub chrom()
  Dim chromePath As String
  chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
  Shell (chromePath & " -url https://www.google.co.uk/")
End Sub
 
Upvote 0
If you have Chrome installed
- amend path to match yours
Code:
Sub chrom()
  Dim chromePath As String
  chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
  Shell (chromePath & " -url https://www.google.co.uk/")
End Sub


Thanks,

That works great to open Chrome and I can also use the same code to open IExplorer.

Now the challenge is, how do I copy the web page contents to Excel?
 
Upvote 0
New question.....so start new thread for best chance of good answer
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top