Hello everyone,
I am trying to add hyperlink in a cell, it works find :
ActiveCell.FormulaR1C1 = "=HYPERLINK(""[Workbook.xlsx]Sheet1!A1"",""CLICK HERE"")"
But when I am trying to change the "CLICK HERE" ,I want to add variables in it, it doesn't work this time. please advise:
Dim mySheetName As String
mySheetName = "sheet12"
ActiveCell.FormulaR1C1 = "=HYPERLINK(""[Workbook.xlsx]Sheet1!A1"",""CLICK HERE to link to : " & mySheetName ")"
Thanks a lot!
Bookmarks