Macro para preencher formulario da Web [+HELP]

The World Is Yours

06-08-2013 18:46:53

Pessoal,

Sou novato em VBA e estou criando um código para preencher um formulário de web que os funcionários preenchem todos os dias. Até agora consegui preencher as textboxes mas às vezes recebo a mensagem:

object doesn't support this property or method .


Sabem me dizer pq isso acontece?

Outra coisa: nesta mesma página, tenho alguns dropdown lists pra preencher... Como posso fazer isso?

Até o momento, meu código está assim:

Código: Selecionar todos

Sub AcessaPagina()

Dim ie As InternetExplorer
Set ie = New InternetExplorer

ie.Navigate "http://epmo.intranet.com/Webforms/TaskCreation.aspx"

While ie.Busy
Wend


ie.Document.getElementById("Content_TEXT_ALPHA_COLUMN1").Value = "Around"
ie.Document.getElementById("Content_TEXT_ALPHA_COLUMN2").Value = "Yes"
ie.Document.getElementById("Content_TEXT_ALPHA_COLUMN14").Value = "Never"


ie.Visible = True

End Sub

Obrigado!