Doflamingo
Board Regular
- Joined
- Apr 16, 2019
- Messages
- 238
Hello all,
Here is the code for any active cell to get left connector.
What I'm looking for, is for the same active cell, to get TOP VERTICAL connector representing 3 cells ABOVE the active cell. Any ideas ? It drives me crazy...
Here is the code for any active cell to get left connector.
Code:
'left direction
l = (ActiveCell.Offset(0, -1).Left)
r = (ActiveCell.Offset(0, 0).Left)
t = (ActiveCell.top + ActiveCell.Offset(1, 0).top) / 2
Set con = ActiveSheet.Shapes.AddConnector(msoConnectorStraight, l, t, r, t)
con.line.Weight = 1
con.line.ForeColor.RGB = RGB(0, 0, 0)
What I'm looking for, is for the same active cell, to get TOP VERTICAL connector representing 3 cells ABOVE the active cell. Any ideas ? It drives me crazy...