M
Mikey C
Hi all
Could anybody tell me how to amend the following code? Instead of
inserting the same link and text into the selected cell, I really need
it to create a link to the newest sheet (i.e. when the macro is run
more than once). So instead of linking to sheet "Template (2)'!A1"
every time, I would like it to increment.
Also, is it possible for the text to disply on the hyperlink to be
whatever is in cell A1 on the new sheet?
Sheets("Template").Select
Sheets("Template").Copy After:=Sheets(47)
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Index").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="",
SubAddress:= _
"'Template (2)'!A1", TextToDisplay:="'Template (2)'!A1"
If I haven't described very well just shout!
Thanks
Mike
Could anybody tell me how to amend the following code? Instead of
inserting the same link and text into the selected cell, I really need
it to create a link to the newest sheet (i.e. when the macro is run
more than once). So instead of linking to sheet "Template (2)'!A1"
every time, I would like it to increment.
Also, is it possible for the text to disply on the hyperlink to be
whatever is in cell A1 on the new sheet?
Sheets("Template").Select
Sheets("Template").Copy After:=Sheets(47)
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Index").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="",
SubAddress:= _
"'Template (2)'!A1", TextToDisplay:="'Template (2)'!A1"
If I haven't described very well just shout!
Thanks
Mike