Create a hyperlink with concatenate and copy to a different workbo

  • Thread starter Thread starter akay71
  • Start date Start date
A

akay71

Hello All,
I am trying to create a hyperlink using concatenate after I get the
hyperlink created I need to copy the hyperlink to a different workbook. Is
this possible? Thanks.
 
Use TextToDisplay

Website = "http://example.microsoft.com"
SubDir = "/help"

Set newbk = Workbooks.Open(Filename:="c:\temp\abc.xls")

With newbk.Worksheets("Sheet1")
.Hyperlinks.Add .Range("E5"), _
Address:=Website & SubDir, _
TextToDisplay:="joel"

End With
 

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