• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

login/website

Mateusz

New Member
Hi there,
I want login but all I get is going to the website, no login/password is beeing put.
What should I change?

Code:
Sub Test()
    Set IE = CreateObject("InternetExplorer.application")
    IE.Visible = True
    IE.navigate ("http://kranlux.pl/admin/products/add")
    Do
        If IE.ReadyState = 4 Then
            IE.Visible = False
            Exit Do
        Else
            DoEvents
        End If
    Loop
    IE.Document.forms(0).all("login").Value = "login"
    IE.Document.forms(0).all("password").Value = "haslo"
    IE.Document.forms(0).submit
   
End Sub
 
Hi, Mateusz!

Have you tried searching before starting a new topic? As you've been told here in the sublinks:
http://chandoo.org/forum/forums/new-users-please-start-here.14/

If you haven't performed yet the search herein, try going to the topmost right zone of this page (Search...), type the keywords used in the title when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.

http://chandoo.org/forum/threads/ho...d-data-from-website-to-excel.2117/#post-25362

Regards!
 
Hi ,

Try this :
Code:
Sub Test()
    Set IE = CreateObject("InternetExplorer.application")
    IE.Visible = True
    IE.Navigate ("http://kranlux.pl/admin/products/add")
    Do
        If IE.ReadyState = 4 Then
            'IE.Visible = False
            Exit Do
        Else
            DoEvents
        End If
    Loop
   
    With IE.Document.forms(0)
        .login.Value = "login"
        .Password.Value = "haslo"
        .submit
    End With
End Sub
Narayan
 
I tried MANY, seriously many codes. Always getting the same resault - the webpage without even a try to login
 
so any suggestions? I saw that a lot of people are able to deal with this problem using really simple codes, but even if I try to use finished code prepared for example for gmail logging or google logging then I still can not login. I only recive the webpage, not trial of logging seen.
 
Hi, Mateusz!

First of all, I think that you should read more and write less, and when writing express at least the deserved respect to those who tried to help you, even if unsuccessfully.

Both NARAYANK991 and me have provided you either sample code or fully working examples of how to handle the login process into a website. Of course we can't verify the aimed goal with the website that you're dealing with since we neither have the UserID nor the password. Which is correct that we don't have it, and speaking for myself we don't want to have it.

So if you're not willing to go thru the provided help because it doesn't work or it's a bit complex, well, you always have the option of Google search.

Regards!
 
Back
Top