I have a macro that creates a series of connector arrows. I needed a way to add a mouseover comment to the arrows. I just added a hyperlink that if clicked will just put them on the same page, but I added a screentip to it and its exactly what I need. But, each time the macro runs, it will delete all existing arrows then add new arrows connecting different shapes, so the hyperlink and comment will be erased. Any way to add a hyperlink with a screentip to a shape with VBA? Below is my code that adds the arrow.
Code:
With Worksheets(1).Shapes.AddConnector(msoConnectorStraight, 0, 0, 100, 100)
With .ConnectorFormat
.BeginConnect ActiveSheet.Shapes(City1), 1
.EndConnect ActiveSheet.Shapes(City2), 1
End With
.RerouteConnections
.Line.Weight = 0.75
.Line.DashStyle = msoLineSolid 'msoLineDash for dashed
.ConnectorFormat.Type = msoConnectorStraight
.Line.Style = msoLineSingle
.Line.Transparency = 0#
.Line.Visible = msoTrue
.Line.ForeColor.SchemeColor = 10 '17 for green
.Line.BackColor.RGB = RGB(255, 255, 255)
.Line.BeginArrowheadLength = msoArrowheadLengthMedium
.Line.BeginArrowheadWidth = msoArrowheadWidthMedium
.Line.BeginArrowheadStyle = msoArrowheadNone
.Line.EndArrowheadLength = msoArrowheadLengthMedium
.Line.EndArrowheadWidth = msoArrowheadWidthMedium
.Line.EndArrowheadStyle = msoArrowheadTriangle
End With