Command Button VB Code w/hyperlinks

G

Glenn

This should be easy, but...
I want to hard code a hyperlink (URL) in the code for a command button, via
Private Sub CommandButton1_Click() what code goes here....?
End Sub
I'm using Excel 2003.
By clicking the command button I want to open a browser and connect to the
URL coded.
 
G

Glenn

Related to the 'Address' line I get a compile error, indicating it's
expecting an expression. This applies to your solution and the one supplied
by Gary''s Student. I may need to use your alternate idea, but for now I'd
like to learn how to make this work. I'm sure there's a way, but.....? As
in all things VB, syntax and other considerations (knowledge and experience)
are paramount to success. I don't know if there is different functionality
as involves user forms and buttons, or what.
Thanks....
 
G

Glenn

I did get this to work - I misinterpreted the word wrap as to syntax....my bad.
Thanks
 

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