I'm trying to use the web browser control to go to a page,then select the control on my form with setfocus and tab to a link. I have been able to strip the links out of the html, but haven't had any luck getting the tabbing to work.
Here's the code I use to determine the links, but I need to be able to determine what link I'm on when I tab in the control.
cntr=0
For Each link In oie.olecontrol1.document.links
cntr=cntr+1
if link.outerText = 'Next'
_screen.activeform.olecontrol1.setfocus()
lntabs=cntr
endif
Next link
I can put focus on the control with _screen.activeform.olecontrol1.setfocus(), but there's no guarantee that the cursor will be at the topmost link.
Anyone got any ideas?
John Harvey
Shelbynet.com
"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright