Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I'm using a code to insert a red triangle in a cell. When I click on the triangle, I will have a message box appear.
Two things: (Note: The activecell will always be in column A)
1. How can I place the msgbox shape in the location as it appears in the picture.
2. How can I place the pointer pointed at the red triangle as it appears in the picture. (Note: The red triangle will always be in the top left corner)
Two things: (Note: The activecell will always be in column A)
1. How can I place the msgbox shape in the location as it appears in the picture.
2. How can I place the pointer pointed at the red triangle as it appears in the picture. (Note: The red triangle will always be in the top left corner)
VBA Code:
Sub Callout()
Dim shCallout As Shape
Set shCall = ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangularCallout, 112.5, 112.5, 89.25, 60)
With shCall
.Name = "Callout"
.TextFrame.Characters.Text = ActiveCell.Offset(, 18).Comment.Text
End With
End Sub