Since I am not a programmer and each new script or task is a new adventure
in misery is there anyone who can explain this code in layman terms?
 
Sub GetListItem(ItemName As String)
    Set e = Web.Selected
    For i = 0 To e.options.length
        OptName = e.options(i).innerHTML
        If ItemName = e.options(i).innerHTML Then
            e.selectedindex = i
            Exit Sub
        End If
    Next
End Sub

This is the code example from the HTML dropdown question in V. talk
archives.  I've got the first part working but get an object not defined
error at "Set e=" and also fail at "For i="  I'm guessing that For i = 0 to
e.options.length would read For i = 0 to 6, Since that is the number of
choices on the dropdown I am working with?
 
Thanks.
 
Brian Bennett 
Systems Analyst 
Affinity Health Systems 
Clinic Billing 
628-9055 
[EMAIL PROTECTED] 
 

Reply via email to