hyperlinks

  • Thread starter Thread starter john.9.williams
  • Start date Start date
J

john.9.williams

hi all
what is the code for hyperlinking to a webpage from vba, i know you can
insert a hyperlink ontp a worksheet but can you do it via code
regards
johny5
 
Here is an example

With Worksheets("Sheet3")
.Hyperlinks.Add Anchor:=.Range("A1"), _
TextToDisplay:="xlDynamic", _
Address:="http://www.xldynamic.com/"
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob has shown you how to add a hyperlink. If you want to execute a
hyperlink without having it physically exist, look at the followhyperlink
method of the workbook object (not the followhyperlink event).
 

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

Back
Top