add special lines in VBA chart

bertjeiv

New Member
Joined
Sep 23, 2010
Messages
32
I have written a macro which works really well but now I want to add vertical lines for certain X values.
On the X-axis i have dates and on the Y axis I have #events. Now I want to mark some dates with a vertical line, these dates are when someone made an intervention. that way I can see clearly if there are less events after an intervention. I have tried to look for solutions but cannot find anything.
Is this possible? if so how?

thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Have you tried adding a new series for the line?
 
Upvote 0
yes when i add a new series it adds the points but I dont know how to force it to draw vertical lines through those points from top to bottom of the chart
 
Upvote 0
I'm trying to do it with error bars now but then I get strange triangles.
experimenting with it now...
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,898
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top