Create Hyperlink

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I create new hyperlink with VBA. The path I want to use is:
C:\Test\test.xls

Thanks in advance.

Maperalia
 
this will put it in cell a1 on sheet1

Sub test()
With Worksheets("Sheet1")
.Hyperlinks.Add .Range("A1"), "C:\Test\test.xls"
End With


End Sub
 

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