Hi,
I'm writing a macro to create a new worksheet, using as template another worksheet in the same workbook. No problems here. Then I tried to create a hyperlink in the newly created and renamed worksheet and got nowhere. Either an error occurs, or the hyperlink is created in the new worksheet but still points to the template worksheet.
I assigned a variable to the new worksheet's name (MyName), but still I have a problem with this line of code (at least):
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=?, SubAddress:= _
?, TextToDisplay:="Month Stats"
Does anybody know a solution? I searched and searched, but found nothing yet.
Thanks for any help,
MrDoc
I'm writing a macro to create a new worksheet, using as template another worksheet in the same workbook. No problems here. Then I tried to create a hyperlink in the newly created and renamed worksheet and got nowhere. Either an error occurs, or the hyperlink is created in the new worksheet but still points to the template worksheet.
I assigned a variable to the new worksheet's name (MyName), but still I have a problem with this line of code (at least):
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=?, SubAddress:= _
?, TextToDisplay:="Month Stats"
Does anybody know a solution? I searched and searched, but found nothing yet.
Thanks for any help,
MrDoc