Open Hyperlink from word in new Explorer window

H

Hills

I want the user to be able to click on a link or button in Word that
opens a new instance of the user's browser (which will always be IE)
and go to the page of the link.

How can I do this with VBA?
 
K

Khai

set a reference to Microsoft Internet Controls
(C:\root\System32\shdocvw.dll)
and have your button do the following.

Dim oIE As New InternetExplorer
oIE.Navigate "www.yahoo.com"
oIE.Visible = True
Set oIE = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top