I'm building a function that retrieves table elements from a web-page. That works quite fine so far.
To make the function more versatile, I would like to be able to call it using parameters telling it what to look for.
My current code writes the values found into the cell using:
Sub RetrieveWebPage Parameter
... some code here
rng.Value = cl.innerHTML
... some code here
End Sub
How can I replace the "innerHTML" with a variable parameter so that it retrieves not always the innerHTML element, but possibly the outerHTML, or the Title, etc.?
I tried this
rng.Value = cl.Parameter
but just get the error that the Object does not support this property or method. Is there a way to do that?
Thanks.