Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
HTML Span
Hey,
I am trying to search the source code of a web page for a specific span. I can use objIE = CreateObject("InternetExplorer.Application") objIE.document.Links.href to find a link but I'm wondering if there is a way to do something like objIE.document.span("lblOwnersVal").Name This is what the span looks like in the source code. I want to search by the span ID and return the name DOE, JOHN <span id="lblOwnersVal" tabindex="-1" class="parceldetail" style="height:10px;width:280px;Z-INDEX: 101; LEFT: 184px; POSITION: absolute; TOP: 352px"DOE, JOHN </span Any help would be appreciated. Thanks, Kyle |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
HTML Span
I presume the line
objIE = CreateObject("InternetExplorer.Application") should be Set objIE = CreateObject("InternetExplorer.Application") If I understand you correctly, you should be able to use objIE.document.getElementById("lblOwnersVal").inne rHTML to get the contents of the span element. Andrew On 6 Nov, 07:47, wrote: Hey, I am trying to search the source code of a web page for a specific span. I can use objIE = CreateObject("InternetExplorer.Application") objIE.document.Links.href to find a link but I'm wondering if there is a way to do something like objIE.document.span("lblOwnersVal").Name This is what the span looks like in the source code. I want to search by the span ID and return the name DOE, JOHN <span id="lblOwnersVal" tabindex="-1" class="parceldetail" style="height:10px;width:280px;Z-INDEX: 101; LEFT: 184px; POSITION: absolute; TOP: 352px"DOE, JOHN * * * * * </span Any help would be appreciated. Thanks, Kyle |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
HTML Span
Thank you for your response, that is exactly what I was looking for.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Graph over a time span | Charts and Charting in Excel | |||
Time Span calculations | Excel Worksheet Functions | |||
Sum within date span | Excel Programming | |||
Sum with Date Span | Excel Programming | |||
Time Span | Excel Discussion (Misc queries) |