Ok, all, first time posting on any forum. Just been sitting in the back, reading and learning. But now I'm stuck and decided to ask for help.
I need to assign a created image with a hyperlink to a hidden sheet, using a variable address based on the value of a cell. EV36 would be the location of the text that matches the name of the hidden sheet.
I need to assign a created image with a hyperlink to a hidden sheet, using a variable address based on the value of a cell. EV36 would be the location of the text that matches the name of the hidden sheet.
VBA Code:
Sub HyperlinkIcon()
ActiveSheet.Shapes.Range(Array("ViewInvoiceIcon")).Select
Selection.Copy
Range("AC" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial
Selection.ShapeRange.IncrementLeft 2.25
Selection.ShapeRange.IncrementTop -0.75
Selection.ShapeRange.Name = Range("FL36")
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"'" & ("EV36") & "'!A1"
Range("AE37").Select
Selection.Copy
Range("AC" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub