0
I am trying to fill the controls on a web page with an interaction between VBA and IE, I am not able to find and popular the fields related to the date of validity of the minutes.
URL Of Page: http://comprasnet.gov.br/aceso.asp?url=/Livre/Ata/Consultaata00.Asp
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
people found that the tags in question are inside a frame called main2
– Daniel Aristofanes
if you found it useful to vote for the answer! rs
– Daniel Aristofanes