Hi,
I tried to add a vertical line on a chart to represent a cutoff point or a benchmark. It will be dynamic, i.e., it will change position with the change of data on X axis.
I found some hint like
ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 10, 10, 250, 250).Select
But it gave me a tilt line, not a straight line. Any idea how to make it straight? Like modify the parameters?
I know what I'm looking for is not a connector but as long as I can get a straight line, fine.
Thanks in advance.
I tried to add a vertical line on a chart to represent a cutoff point or a benchmark. It will be dynamic, i.e., it will change position with the change of data on X axis.
I found some hint like
ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 10, 10, 250, 250).Select
But it gave me a tilt line, not a straight line. Any idea how to make it straight? Like modify the parameters?
I know what I'm looking for is not a connector but as long as I can get a straight line, fine.
Thanks in advance.