Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default This procedure used to work before IE8

Hello!

I have a procedure which did very nicely by going into a webpage, doing
stuff and bringing me data. However, it stopped working after I updated to
IE8. I get an "Automatization Error" at the ".Navigate sURL" of the procedure
(see below).

Could someone help me fix it?
Do I have to change the reference? I currently have a reference to:
Microsoft Internet Controls
Microsoft HTML Object Library
OLE Automation
and the other stuff that's usually there for everyone....

I thank you in advance for any help.

Here's the relevant part of the procedure.

Dim appIE As InternetExplorer
Dim sURL As String
Dim UserN As Variant, PW As Variant
Dim Element As HTMLButtonElement
Dim btnInput As MSHTML.HTMLInputElement
Dim ElementCol As MSHTML.IHTMLElementCollection
Dim Link As MSHTML.HTMLAnchorElement
Dim strCountBody As String
Dim lStartPos As Long
Dim lEndPos As Long
Dim TextIWant As String

Application.ScreenUpdating = False

Set appIE = New InternetExplorer

sURL =
"http://www.infoval.com.co/spivi2/JInterna.jsp?nomPagina=JNSBetas.jsp"

With appIE
.Navigate sURL
' uncomment the line below if you want to watch the code execute, or
for debugging
'.Visible = True
End With

Do Until appIE.readyState = READYSTATE_COMPLETE
Loop

'Do lots of stuff in there......
  #2   Report Post  
Posted to microsoft.public.excel.programming
r r is offline
external usenet poster
 
Posts: 125
Default This procedure used to work before IE8

try this ...

Sub testIE()
' late binding
Dim myIE As Object
Set myIE = CreateObject("InternetExplorer.Application")
Const READYSTATE_COMPLETE As Long = 4
Const myURL As String = "http://www.infoval.com.co/" & _
"spivi2/JInterna.jsp?nomPagina=JNSBetas.jsp"

myIE.navigate myURL
myIE.Visible = True

Do While myIE.Busy Or myIE.readyState < READYSTATE_COMPLETE
DoEvents
Loop

End Sub

regards
r

Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/...ternative.html


"Albert" wrote:

Hello!

I have a procedure which did very nicely by going into a webpage, doing
stuff and bringing me data. However, it stopped working after I updated to
IE8. I get an "Automatization Error" at the ".Navigate sURL" of the procedure
(see below).

Could someone help me fix it?
Do I have to change the reference? I currently have a reference to:
Microsoft Internet Controls
Microsoft HTML Object Library
OLE Automation
and the other stuff that's usually there for everyone....

I thank you in advance for any help.

Here's the relevant part of the procedure.

Dim appIE As InternetExplorer
Dim sURL As String
Dim UserN As Variant, PW As Variant
Dim Element As HTMLButtonElement
Dim btnInput As MSHTML.HTMLInputElement
Dim ElementCol As MSHTML.IHTMLElementCollection
Dim Link As MSHTML.HTMLAnchorElement
Dim strCountBody As String
Dim lStartPos As Long
Dim lEndPos As Long
Dim TextIWant As String

Application.ScreenUpdating = False

Set appIE = New InternetExplorer

sURL =
"http://www.infoval.com.co/spivi2/JInterna.jsp?nomPagina=JNSBetas.jsp"

With appIE
.Navigate sURL
' uncomment the line below if you want to watch the code execute, or
for debugging
'.Visible = True
End With

Do Until appIE.readyState = READYSTATE_COMPLETE
Loop

'Do lots of stuff in there......

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default This procedure used to work before IE8

Yep.
Now it works.
Thank you sir!

"r" escribió en el mensaje
...
try this ...

Sub testIE()
' late binding
Dim myIE As Object
Set myIE = CreateObject("InternetExplorer.Application")
Const READYSTATE_COMPLETE As Long = 4
Const myURL As String = "http://www.infoval.com.co/" & _
"spivi2/JInterna.jsp?nomPagina=JNSBetas.jsp"

myIE.navigate myURL
myIE.Visible = True

Do While myIE.Busy Or myIE.readyState < READYSTATE_COMPLETE
DoEvents
Loop

End Sub

regards
r

Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/...ternative.html


"Albert" wrote:

Hello!

I have a procedure which did very nicely by going into a webpage, doing
stuff and bringing me data. However, it stopped working after I updated
to
IE8. I get an "Automatization Error" at the ".Navigate sURL" of the
procedure
(see below).

Could someone help me fix it?
Do I have to change the reference? I currently have a reference to:
Microsoft Internet Controls
Microsoft HTML Object Library
OLE Automation
and the other stuff that's usually there for everyone....

I thank you in advance for any help.

Here's the relevant part of the procedure.

Dim appIE As InternetExplorer
Dim sURL As String
Dim UserN As Variant, PW As Variant
Dim Element As HTMLButtonElement
Dim btnInput As MSHTML.HTMLInputElement
Dim ElementCol As MSHTML.IHTMLElementCollection
Dim Link As MSHTML.HTMLAnchorElement
Dim strCountBody As String
Dim lStartPos As Long
Dim lEndPos As Long
Dim TextIWant As String

Application.ScreenUpdating = False

Set appIE = New InternetExplorer

sURL =
"http://www.infoval.com.co/spivi2/JInterna.jsp?nomPagina=JNSBetas.jsp"

With appIE
.Navigate sURL
' uncomment the line below if you want to watch the code execute,
or
for debugging
'.Visible = True
End With

Do Until appIE.readyState = READYSTATE_COMPLETE
Loop

'Do lots of stuff in there......



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ending Procedure When Condition is Met Anywhere in Procedure Orion Cochrane Excel Programming 2 October 21st 08 02:25 PM
Stop Procedure when an Error occurs in another procedure RyanH Excel Programming 4 October 15th 08 08:11 PM
Procedure- for each..in does not work GAMMOT Excel Discussion (Misc queries) 1 February 26th 07 09:12 AM
How to jump from a Form procedure to a Workbook or Module procedure? T. Erkson Excel Programming 4 January 25th 07 07:15 PM


All times are GMT +1. The time now is 05:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"