Just changed from VB6 to VB2008.
After some investigation, I have found that IE8, has changed regarding GetElementById and GetElementsByName.
My old VB6 code used to bind to certain places on a webpage, using this code
HTMLDOC = objIE.document.getElementById("mainframe")
But IE8 is case...
Just converted from VB6 to VB2008
On running my old code, I get the following error.
Conversion from type '_ComObject' to type 'String' is not valid
This is the code that is throwing the error.
trans = Trim(MyArea)
I have declared trans as a string
and MyArea as object.
MyArea is set to...
Finally Cracked it...
I used the following code
Declare Sub Wait(objIE As Object)
Sub Main()
Dim objIE As Object, i As Integer
Set objIE = CreateObject("InternetExplorer.Application")
With objIE
.Visible = True
.Navigate "http://www.google.com"
End...
1. Declare Sub Wait(objIE As Object)
2.
3. Sub Main()
4. Dim objIE As Object
5. dim objApp as object
6.
7. Set objIE = CreateObject"InternetExplorer.Application")
8. With objIE
9. .Visible = True
10. .Navigate "http://www.google.com"
11. End With
12.
13. 'Call...
I was using the code for Google as a test web site. Just to find the text box and enter some text, if I could get this to work I was going to adapt my code to work with an internal website
WinblowsME - I have tried the code that you posted above, but it returns an error with ref to the following code:
objIE.Document.Forms("f").all.item("q").value = "TEST"
It returns Object value is set to nothing
Hi,
I am trying to write a macro using Attachmate Extra 7.1 to copy from an Extra screen, find the correct opened Internet Explorer window then paste the contents into a blank box on Internet Explorer.
I can get the macro to open a new IE window, navigate to a certaqin website(I used Google)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.