ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Create a Hyperlink as part of a macro (https://www.excelbanter.com/new-users-excel/133746-create-hyperlink-part-macro.html)

Nahraine

Create a Hyperlink as part of a macro
 
I'm trying to set up a macro where each time it runs, it inserts a new
worksheet with a hyperlink from the initial sheet to the new one. However,
when I run the macro, the hyperlink always takes me to the worksheet I used
when recording the macro. I think the problem is that the hyperlink I set up
was to a specific worksheet only, so I'm wondering if there is a way to
program the macro to update the hyperlink to the new worksheet each time.

Can anyone help?

JMay

Create a Hyperlink as part of a macro
 
Can you show us your code?


"Nahraine" wrote:

I'm trying to set up a macro where each time it runs, it inserts a new
worksheet with a hyperlink from the initial sheet to the new one. However,
when I run the macro, the hyperlink always takes me to the worksheet I used
when recording the macro. I think the problem is that the hyperlink I set up
was to a specific worksheet only, so I'm wondering if there is a way to
program the macro to update the hyperlink to the new worksheet each time.

Can anyone help?



All times are GMT +1. The time now is 07:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com