title: input text in IE using excel vba error
body: <p>Ive been trying to input text in IE using VBA but i keep getting object doesnt support this property
  the url I'm trying to input test is 
  <a href="http://www.smartsurvey.co.uk/s/2XKL1/" rel="nofollow">http://www.smartsurvey.co.uk/s/2XKL1/</a> </p>
  
  <p>my code is </p>
  
  <pre><code>Sub inputusername()
  Dim IE As Object
  Dim name As String
  
  
  With Application
      .ScreenUpdating = False
      .EnableEvents = False
  End With
  
  currenttime = Hour(Now())
  
  If currenttime &lt; 12 Then
      g01 = "Morning"
  ElseIf currenttime &gt;= 18 Then
      g01 = "Evening"
  Else
      g01 = "Afternoon"
  End If
  'Me.embtn.Visible = True
  'MsgBox (g01 &amp; " " &amp; Application.UserName)
  If MsgBox(g01 &amp; " " &amp; Application.UserName &amp; " Please input your name on the website?", vbYesNo + vbQuestion) = vbNo Then
      name = InputBox("Please type in your name")
  Else
      name = Application.UserName
  End If
  'MsgBox (Name)
  Set IE = CreateObject("InternetExplorer.Application")
  With IE
  
      .Visible = True
      .Navigate ("http://www.smartsurvey.co.uk/s/2XKL1/")
      Do While IE.Busy: DoEvents: Loop
  
      IE.doucment.getelementsByName("t31092740").innertext = name
      IE.document.getelementsByName("cmdGo").Item.Click
  End With
  ' cleaning up memory
  IE.Quit
  Set IE = Nothing
  
  MsgBox "Yippy Thanks"
  
  End Sub
  </code></pre>
  
  <p>I have tried replacing <code>IE.doucment.getelementsByName("t31092740").innertext</code>
  with <code>IE.doucment.getelementsByName("t31092740").innerhtml</code> ;
  <code>IE.doucment.getelementsByID("t31092740").innertext</code>  but keep geting object does not support this property or method </p>