Hi,
I have some code which runs through the links collection of IE:
For i = 1 To ieDoc.Links.Length
Debug.Print i, Mid(ieDoc.Links(i - 1).innertext, 1, 20)
Next i
I want to do the same thing with a variable but can't figure out how to do this. Basically, I load all the html from a saved text file into a variable (called MyVar). I think it's got something to do with setting this variable as an object but I can't figure it out...? I'm thinking something like...
For i = 1 To MyVar.Links.Length
Debug.Print i, Mid(ieDoc.Links(i - 1).innertext, 1, 20)
Next i
but this doesn't work!
Thanks in advance for any help
I have some code which runs through the links collection of IE:
For i = 1 To ieDoc.Links.Length
Debug.Print i, Mid(ieDoc.Links(i - 1).innertext, 1, 20)
Next i
I want to do the same thing with a variable but can't figure out how to do this. Basically, I load all the html from a saved text file into a variable (called MyVar). I think it's got something to do with setting this variable as an object but I can't figure it out...? I'm thinking something like...
For i = 1 To MyVar.Links.Length
Debug.Print i, Mid(ieDoc.Links(i - 1).innertext, 1, 20)
Next i
but this doesn't work!
Thanks in advance for any help