I'm big into developing with VBA (cuts through corporate red tape with a chainsaw) and have become adroit at extending these macros with various add-in references (IE, Excel, Outlook, and Word automation objects, IE of which is my best 'trick').
Anyway, I'm curious how I could get a list of the OOP 'guts' of a given object on a web page, seeing as my IDE cannot give any hints.
Here's some sample code, make sure shdocvw.dll is referenced, and presume 'www.mywebsite.com' has a username and password text box as well as a button to log in:
Sub MyIEAutomationExample
Dim IE as InternetExplorer
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate ("http://www.mywebsite.com")
Do Until IE.ReadyState = READYSTATE_COMPLETE 'Delay for loading page
Loop
IE.Document.all.Item("tbxUserName").Value = "Nxwtypx"
IE.Document.all.Item("tbxPassword").Value = InputBox("Please enter your password.")
IE.Document.all.Item("btnLogin").Click
End Sub
The question on my mind, is what if I wanted to ascertain the other Properties/Methods/Events of tbxUserName, tbxPassword, or btnLogin? Is there some kind of reference availiable for standard objects?
And even then, what about kinkier objects like Rich Text Boxes, for all I know, that were developed in-house?