ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Automated Hyperlinking (https://www.excelbanter.com/excel-discussion-misc-queries/221197-automated-hyperlinking.html)

Mitch

Automated Hyperlinking
 
I've written a macro that will duplicate a template worksheet and rename it
based on what is written in the userform's textbox. I've made the macro add
the value in the textbox to a list. I am now trying to add a hyperlink from
the cell in the list to the duplicated worksheet. Here is my code:

Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveCell.Value = Textbox1.Text
Sheets("Template").Select
Sheets("Template").Copy after:=Sheets("Ingredient Template")
Sheets("Template (2)").Name = Textbox1.Text
Range("A1").Select.Value = Textbox1.Text
Sheets("Overview").Select
Range("A65536").End(xlUp).Select

Any ideas on hyperlinking the newly populated cell to the newly duplicated
worksheet?


All times are GMT +1. The time now is 08:54 PM.

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