Create a hyperlink within an Excel cell?

前端 未结 5 1120
余生分开走
余生分开走 2021-01-18 06:48

Is it possible to create a hyperlink within an Excel cell which only uses a section of the cell text for the clickable link? I.E. would the below table mockup represent som

5条回答
  •  既然无缘
    2021-01-18 07:16

    I needed to link to a filename displayed in a cell, so here is what worked for me:

    ActiveSheet.Hyperlinks.Add Anchor:=Cells(row, column), Address:=file.Path, TextToDisplay:=file.Path
    

提交回复
热议问题