nagovind
Member
While constructing the chart using VBA it is creating the chart with round type ends
to change the same it is required to change the Line cap type as SQUARE
But the below code is not working
PLEASE ADVISE the right code
Sub SetLineCap()
ActiveChart.SeriesCollection(1).Select
With Application
.SendKeys ("^1") ' format dialog
.SendKeys ("{DOWN}{DOWN}{DOWN}{DOWN}") ' Line style
.SendKeys ("{TAB}{TAB}{TAB}{TAB}") ' Cap type...... I NEED SQUARE TYPE
.SendKeys ("F{RETURN}") ' Flat
.SendKeys ("{ESC}") ' close dialog
End With
End Sub
to change the same it is required to change the Line cap type as SQUARE
But the below code is not working
PLEASE ADVISE the right code
Sub SetLineCap()
ActiveChart.SeriesCollection(1).Select
With Application
.SendKeys ("^1") ' format dialog
.SendKeys ("{DOWN}{DOWN}{DOWN}{DOWN}") ' Line style
.SendKeys ("{TAB}{TAB}{TAB}{TAB}") ' Cap type...... I NEED SQUARE TYPE
.SendKeys ("F{RETURN}") ' Flat
.SendKeys ("{ESC}") ' close dialog
End With
End Sub