I have code that creates a new rectangle and I would like to add a hyperlink to the shape.
The code is attached to a button in a sheet called Master and the code creates a new shape in a sheet called Sheet A. The name created for the shape is stored in a variable called NewName.
Set MyShape = Sheets(Sheet A).Shapes.AddShape(msoShapeRectangle, BFL, BT, BW, BH)
MyShape.Name = NewName
Could someone give me the code that would add a hyperlink to the new button so that it would link to Cell A1 in a sheet I have named Products?
Thanks
Mike
The code is attached to a button in a sheet called Master and the code creates a new shape in a sheet called Sheet A. The name created for the shape is stored in a variable called NewName.
Set MyShape = Sheets(Sheet A).Shapes.AddShape(msoShapeRectangle, BFL, BT, BW, BH)
MyShape.Name = NewName
Could someone give me the code that would add a hyperlink to the new button so that it would link to Cell A1 in a sheet I have named Products?
Thanks
Mike