$ dollar signs causing issues in Excel VBA - HTML

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



My goal is to automate a login process however the name of the Submit
button on the webpage is : "user$btnSubmit"

and when i put the following code in excel VBA, it will automatically
put a space after the $ as though its some kind of special character
and the code doesnt work


With ie2
With .Document.user$btnSubmit.Click()
End With
End With


HTML code:

<td><input type="submit" name="user$btnSubmit" value="Submit"
onclick="javascript:WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions(&quot;user$btnSubmit&quot;, &quot;&quot;,
true, &quot;&quot;, &quot;&quot;, false, false))" id="user_btnSubmit"
accesskey="S" />


i've managed to get it working with:

With ie2
With .Document.all.Item(158).Click()
End With
End With

however sometimes under certain circumstances, the button isnt located
under item 158.
and im also wanting to call other txt input boxes by name (which also
have $'s rather then item #s

Suggestions?

.



Relevant Pages

  • Re: Can someone reccomend a Spell Checker?
    ... If you are thinking webpage, you will have to modify the code to automate ... >> Use com interop to automate the Microsoft Office spell checker API ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Automatically Lock the Computer during logon
    ... i'm currently using XP Powertoy to automate the login process of my PC. ... I've entered my Domain username and password so that everytime when the PC ... boots up it will automatically log me on. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Disable windows login
    ... I would suggest you to automate the login process in Windows XP. ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.windowsxp.customize)
  • Re: Microsoft have got to make PC users aware of the problem
    ... Because they would have to open a new webpage each time, ... harder to automate because cookies on the website can ... If you block their cookie, you can't send, if the cookie is ...
    (microsoft.public.security.virus)
  • Re: Automatically Lock the Computer during logon
    ... i'm currently using XP Powertoy to automate the login process of my PC. ... > I've entered my Domain username and password so that everytime when the PC ... > boots up it will automatically log me on. ...
    (microsoft.public.windowsxp.security_admin)