VB WebBrowser Frames Login problem

I'm Trying to automate a Login Proccess with WebBrowser Control. The web is www.aag.com.ar/clubes. The problem is that when I go to: IE.navigate "www.aag.com.ar/clubes" there is no "txtUsuario" field to fill. But if I go to IE.navigate "www.aag.com.ar/clubes/editorial.asp" I find it. The problem is that if I do the last option when I "click" on the Log In Link, it does nothing. It's like www.aag.com.ar/clubes is divided in Frames, but i check out this and only 2 frames appear. The Login Frame is not appearing. How can i handle this problem?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shiju SasidharanAssoc Project ManagerCommented:
First u navigate to
Whet this document gets completed try to navigage
and after this Document is Loaded completely , "click" on the Log In Link

EzesAuthor Commented:
I tried that by doing the following:
Ie.navigate "www.aag.com.ar/clubes"
on the Document_Complete: I use another control IE2 by:
IE2.navigate "www.aag.com.ar/clubes/editorial.asp" and
Set htmlelement = IE2.document.All.Item("txtUsuario")
htmlelement.Value = "C110GF"
Set htmlelement = IE2.document.All.Item"txtPassword")
htmlelement.Value = "C110GF"
Set htmlelement = IE2.document.links.Item(0)

But still doesn´t work...
editorial.asp is within 2 different framesets (/   ->   /frahome.asp   ->  /editorial.asp).

Private Sub Command1_Click()
    Dim objDoc As Object
    Call WebBrowser1.Navigate("http://www.aag.com.ar/clubes/")
    Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
    Set objDoc = WebBrowser1.Document
    Set objDoc = objDoc.frames(1).Document
    Set objDoc = objDoc.frames(1).Document
    'fill in form
    objDoc.frmLogin.txtUsuario.Value = "user?"
    objDoc.frmLogin.txtPassword.Value = "pass?"
    'submit form...
    Call objDoc.frmLogin.submit
End Sub
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

EzesAuthor Commented:
Thanks....It worked perfect....I can continue now....
EzesAuthor Commented:
I'm now having this error and don´t understand why...
I carry on "navigating" through this web and have to set 3 times the objDoc.
Set objDoc = IE.document
    Set objDoc = objDoc.frames(1).document
    Set objDoc = objDoc.frames(1).document
    Set objDoc = objDoc.frames(1).document

It ones worked, but now i have the following error:
-2147352567 Exception....
EzesAuthor Commented:
My mistake....i had commented some lines and didn´t notice it...The problem now is the following. I'm trying to download a file by "clicking" a link, but i don't want to be displayed the window for saving the file....
>>Question Title: VB WebBrowser Frames Login problem
I believe your question is resolved.

>>but i don't want to be displayed the window for saving the file
You can handle it in the BeforeNavigate2() event. If it's the file is in the URL parameter, download it manually (through INET for example) and set Cancel to "True" so the browser does not navigate to it.

Since it's an entirely different question, I'm not going to comment further on it. I hope you understand.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.