How do I keep this line from displaying the first 7 characters it finds?
For Each u9 As HtmlElement In WebBrowser3.Document.GetElementsByTagName("div")
If Not Object.ReferenceEquals(u9.GetAttribute("className"), Nothing) AndAlso u9.GetAttribute("className").Equals("duration_data") Then
TextBox12.Text = u9.InnerText
Exit For
End If
Next
I’m thinking it’d go into TextBox12.Text = u9.InnerText but I am unsure what kind of code.
You can use the Substring method to achieve this: