I would like to create a macro that inserts vectors from the bottom of one cell to the top of another.
I have found the below approach but it does not seem to work. can someone help me please?
Sub insert_lines()
start_x = 0
start_y = 0
end_x = 10
end_y = 10
Line = Sheet1.Shapes.AddLine(start_x, start_y, end_x, end_y)
Line.Line.EndArrowheadStyle = MsoArrowheadStyle.msoArrowheadTriangle
End Sub
I have found the below approach but it does not seem to work. can someone help me please?
Sub insert_lines()
start_x = 0
start_y = 0
end_x = 10
end_y = 10
Line = Sheet1.Shapes.AddLine(start_x, start_y, end_x, end_y)
Line.Line.EndArrowheadStyle = MsoArrowheadStyle.msoArrowheadTriangle
End Sub