How do I open a web page?

M

Max Moor

Hi All,
I want to open a webpage, either from a macro or VB. I don't have to
write anything out to it, or read anything back from it, I just want the
default browser to open and go there. There must be a simple way, but I'm
not finding it.

Thanks, Max
 
M

Melinda

Try using the FollowHyperlink command. If you enter your website as
"http:\\www.yoursitehere.com" in the place for Address, it opens the site in
the default browser. There's an example in VB help.
Melinda
 
G

George Nicholson

If you are using the click event of a button, image or label, you can use
the HyperlinkAddress property of those controls for web addresses, files,
etc. (A Label has to be an independent stand-alones or the necessary
properties & events won't appear. It can't be "attached" to another
control.)

HTH,
 
M

Max Moor

Try using the FollowHyperlink command. If you enter your website as
"http:\\www.yoursitehere.com" in the place for Address, it opens the
site in the default browser. There's an example in VB help.
Melinda



Awesome, Melinda. Just what I needed. Thanks, Max
 
M

Max Moor

If you are using the click event of a button, image or label, you can
use the HyperlinkAddress property of those controls for web addresses,
files, etc. (A Label has to be an independent stand-alones or the
necessary properties & events won't appear. It can't be "attached" to
another control.)

HTH,


Cool. Thanks, George
 
Top