I created a macro in excel to insert a red arrow via keyboard command. I figured out thru research how to make it stop selecting the cell that was selected when I wrote the macro, but I can't figure out how to make it insert the arrow next to my current selection every time. It currently inserts the arrow in the same spot as my original line from when I recorded the macro. Is there a way around this?
Here is the code:
Sub Red_Arrow_Insert()
Red_Arrow_Insert Macro
Insert Red Arrow
Keyboard Shortcut: Ctrl+Shift+A
ActiveCell.Select
ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 264, 50.25, 353.25, 139.5 _
).Select
Selection.ShapeRange.Line.EndArrowheadStyle = msoArrowheadOpen
With Selection.ShapeRange.Line
.Visible = msoTrue
.ForeColor.RGB = RGB(255, 0, 0)
.Transparency = 0
End With
With Selection.ShapeRange.Line
.Visible = msoTrue
.Weight = 1.5
End With
ActiveCell.Select
End Sub