Results 1 to 10 of 10

Thread: WebBrowser - Extract SPAN ID= value

Threaded View

  1. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: WebBrowser - Extract SPAN ID= value

    Object doesn't support this property or method

    Code:
    Private Sub List1_Click()
        Dim SpanElement As MSHTML.HTMLSpanElement
    
        If SuppressEvents Then Exit Sub
        With List1
            Set SpanElement = SpanElements.Item(.List(.ListIndex))
        End With
        With SpanElement
            Text1.Text = .Id
            Text2.Text = .textContent
        End With
    End Sub
    Last edited by jmsrickland; May 28th, 2016 at 12:13 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width