Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
form field
hi,
i was able to successfully use the following code in another website, but a different website i am testing it on (the myDoc.forms(0).UserName.Value = strSearch is the error line being highlighted) yields an error: "object doesn't support this property or method" here is my code: 'Variable declarations Dim myIE As New InternetExplorer 'New ' Dim myURL As String Dim myDoc As HTMLDocument Dim strSearch As String 'Set starting URL and search string myURL = "https://site.login.com/GREATNESS/Logon.asp" strSearch = "poweruser" 'Make IE navigate to the URL and make browser visible myIE.navigate myURL myIE.Visible = True 'Wait for the page to load Do While myIE.Busy Or myIE.readyState < READYSTATE_COMPLETE DoEvents Loop 'Set IE document into object Set myDoc = myIE.document 'Enter search string on form myDoc.forms(0).UserName.Value = strSearch myDoc.forms(0).Password.Value = "test" how can i figure out whiat the fieldname is, or get closer to making this work? thanks in advance, geebee |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Linked excel field from access form field - help required. | Excel Programming | |||
Active X Controls Tabbing from Form Field 2 Form Field | Excel Discussion (Misc queries) | |||
Reading Access Form Field and Copy to Excel Field | Excel Programming | |||
Copy form field value to another form (calendar) | Excel Programming | |||
How do I set up excel to tab from field to field in a form? | Excel Discussion (Misc queries) |