TwelvestoneBack End

VBA / web form question


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
swampy
 
2011-11-07

I'm trying to logon to a customer website using vba. I can call up the website and automatically enter the username and password but I need to know the name of the command button so that I can tell the code to press it. Here is the code that I used to get the field names for the username and password;-

For Each oHTML_Element In HTMLDoc.getElementsByTagName("input") Debug.Print oHTML_Element.Name Next

Now (presumably) all I need to know is what is the tag name for listing command buttons or is there any other command that I could use to get the elements of the web form?

swampy
 
2011-11-07

never mind. I re read the quetion and worked it out:

The login button was actually running a javascript routine which I've managed to do with the following command;-

Call oBrowser.Document.parentWindow.execScript("ValidateLogin(frmLogin)", "JavaScript")

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneBack End

VBA / web form question