none
login on facebook with VBA RRS feed

  • Question

  • I want to know how to log in on facebook using VBA in google chrome

    i know how to use the shell function to open chrome but that's as far as my knowledge goes.

    I also know that I need to fill in this parts of the source code:

    the textbox for the name is 

    <input type="text" class ="inputtext" name="email" id="email" value tabindex="1"
    </td>

    the textbox for the password is

    <input type="password" class="inputtext" name="pass" id="pass tabindex="2">
    </td>

    and then it should press enter which is 

    <label class="uibutton uibuttonconfirm" id="loginbutton" for ="u_0_3>...</label>
    </td>

    but i don't know which code to use for that

    i also like to know how to open a google chrome incognito page with the shell function

    Sunday, January 20, 2013 2:47 PM

All replies

  • Sub facebookPost()

    Dim IE As Object Dim sUser As String, sPass As String '~~> Change as Applicable sUser = "Blah Blah" sPass = "Blah Blah" Set IE = CreateObject("INTERNETEXPLORER.Application") IE.Navigate ("www.Facebook.com") IE.Visible = True Do While IE.Busy: DoEvents: Loop Application.Wait (Now + TimeValue("00:00:02")) IE.Document.all.Item("email").Value = sUser IE.Document.all.Item("pass").Value = sPass IE.Document.all.Item("loginbutton").Click End Sub

    Friday, August 30, 2019 5:30 AM