Hi all,
I got an issue with Excel userform Microsoft webbrowser.
Purpose of my userform/macro:
- Searching cell value in Webbrowser to view info on specified websites.
VBA Code:
Navigate their and click datasheet should open the link in current window. (instead of new window)
(Please excuse me for the * in the link, im not allowed to post links but I need it for my application to browse there and you will need an example.)
The problem is that:
- I can't follow a link which normally would open in a new tab. (If I copy the link manually and browse it with the webbrowser it works fine.)
- I'm unable to catch the link its trying to follow it only cathces the url its currently at.
- It tries to open an newwindow instead it should open in current window.
What I tried:
Catching the URL at BeforeNavigate event
Code:
Redirecting at WebBrowser1_NewWindow2
Code:
Some pointers in the right direction would be more then welcome.
Most results I found on google are c# based.
Bookmarks