Help:VB and MSHTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dim S

    #1

    Help:VB and MSHTML

    Hi

    I'm trying to add an OPTION element to a SELECT element inside from VB

    Dim oSel As HTMLSelectEleme nt
    Dim oOpt As HTMLOptionEleme nt

    Set oSel = mDoc.All("oSele ct")
    Set oOpt = mDoc.createElem ent("OPTION")

    oOpt.Value = "1"
    oOpt.Text = "Option 1"
    oSel.Add (oOpt)


    But the code is wrong!

    Any idea???


    Dim


Working...