Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi coders,

When I try to load a url in IE8 using vba code that works well. But if I try that same code using IE9 I get the error like "can not specified the project or dll".

But I already enabled Microsoft Internet Control reference.

So please if anyone knows the solution reply to me.

Thanks in advance.
Posted
Updated 8-Aug-11 22:35pm
v2

1 solution

In my project "Microsoft Internet Controls" referenced to: C:\Windows\SysWOW64\ieframe.dll and code below works properly.

VB
Option Explicit

Sub dsadas()
Dim ie As InternetExplorer

Set ie = New InternetExplorer
ie.Navigate "http://www.codeproject.com/Questions/238339/Internet-Explorer-9-and-Excel-VBA"
ie.Visible = True

Set ie = Nothing
End Sub
 
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