Create hyperlink to another cell

后端 未结 2 937
不知归路
不知归路 2021-01-24 08:04

I want to have a hyperlink created in VBA which will jump to a specific cell when clicked, similar to an HTML anchor link.

For instance:

ActiveSheet.Hype         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 08:18

    Try that way:

    ActiveSheet.Hyperlinks.Add Anchor:=ActiveSheet.Range("E5"), Address:="", SubAddress:="Sheet1!A1", TextToDisplay:="Sheet1!A1"
    

提交回复
热议问题