Click here to Skip to main content
15,798,037 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am creating word vba code for opening internet explorer

set IE = CreateObject("InternetExplorer.Application")

this code shows runtime error
unspecified error

What I have tried:

set IE = CreateObject("InternetExplorer.Application")
Updated 13-Oct-20 5:04am
CHill60 13-Oct-20 8:54am    
Does this occur when you first run your program? Has that line of code ever worked?
ZurdoDev 13-Oct-20 9:59am    
CHill60 13-Oct-20 10:05am    
Oops - sorry. I didn't see this before starting to type my solution. Great minds think alike!

1 solution

The research you need can be found with this google search[^]

In there you will find many suggestions to use an actual reference to "Microsoft Internet Controls" and to create the object like this
set IE = New InternetExplorerMedium
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900