Hi Kennith
Thanks very much for the reply.
I have Early Binding in my main code, but I get no intellisense offerings for Elem where I am using it. -
Elem I have declared at the signature line of a Called Sub routine
This routine gets “fed” in Elem HTML Objects . ( or nodes thereof ) in the first argument. Inside the called subroutine, by setting a watch or looking in the immediate window at a Debug.Print of Elem, I get the results indicated in post 1
_...
BTW. I made an error In post #1,I do not actually get using Elem.NodeType this_....
Element
Text
Element
Element
Element
Element
Text
_....
I actually get_.......
1
3
1
1
1
1
3
_...... But I have a look Up Table which I found by googling which list the Node Types and the numbers given by .NodeType, and I do a VLookUp on that to get the results
Element
Text
Element
Element
Element
Element
Text
I tried your suggestion of
Elem.Type
Either using
Debug.Print Elem.Type
Or
Dim v As Variant: Let v = Elem.Type
But I get a the 438 Error of Object not supporting the Method or Property, so I guess that is telling us that Type is not a member of the object Elem. ( I guess I should be able to see that from the Object Browser, but somehow I can never seem to get the hang of that thing )
At the same point in the code
Elem.NodeType
Or
DeBug.Print Elem
“works”, giving the results indicated.
Thanks anyway for the suggestion
I am hoping there is a way to get in a string what one sees in the Watch Window as I showed. That info must be held somewhere. I would have thought that this question has been asked before, but I have no luck in searching yet
Thanks again for the reply
Alan
Bookmarks