1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Dim nom As String
Dim pass As String
Dim rst As Recordset
Dim db As DAO.Database, rst As DAO.Recordset
rst.OpenRecordset ("SELECT * FROM table_concernée;")
nom = rst("login")
pass = rst("motpass")
Dim IE As InternetExplorer
Dim maPageHtml As HTMLDocument
Dim Helem As HTMLElementCollection
Set IE = CreateObject("internetExplorer.Application")
IE.Visible = True
IE.navigate "http://www.levioloncelle.com/forum/index.php"
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
IE.Document.all("username").Value = nom
IE.Document.all("password").Value = pass
IE.Document.all("login").Click
rst.close 'Fermeture
set rst = Nothing 'Désallocation |