I'm trying to fill in the controls on a web page with an interaction between VBA and IE, I'm not able to find and popular the fields referring to the effective date of the minutes.
PageURL: link
VBA code:
Sub x()
Dim ie As InternetExplorer
Dim C
Dim ULogin As Boolean, ieForm
Dim MyPass As String, MyLogin As String
Set ie = New InternetExplorer
ie.Visible = True
ie.Navigate "http://comprasnet.gov.br/acesso.asp?url=/Livre/Ata/ConsultaAta00.asp"
Do Until ie.ReadyState = READYSTATE_COMPLETE
Loop
ie.Document.getElementsByName("dt_ini").Value = "12/12/2012" 'o erro ocorre aqui
ie.Document.getElementsByName("dt_fim").Value = "12/11/2011" 'o erro ocorre aqui
End Sub
Sub Referencia()
Dim ObRef
On Error Resume Next
' Adiciona Controles da Net
ThisWorkbook.VBProject.References.AddFromGuid "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}", 1, 1
End Sub