I have the following code:
Public pubChartAreaBorderLineStyle
pubChartAreaBorderLineStyle = "xlContinuous"
With grphChart.ChartArea.Border
.LineStyle = pubChartAreaBorderLineStyle
End With
Access throws a syntax error 1004 on .LineStyle = pubChartAreaBorderLineStyle
If I change the code to .LineStyle =1, the code runs fine
Why does it not like pubChartAreaBorderLineStyle?
Thanks in advance
Public pubChartAreaBorderLineStyle
pubChartAreaBorderLineStyle = "xlContinuous"
With grphChart.ChartArea.Border
.LineStyle = pubChartAreaBorderLineStyle
End With
Access throws a syntax error 1004 on .LineStyle = pubChartAreaBorderLineStyle
If I change the code to .LineStyle =1, the code runs fine
Why does it not like pubChartAreaBorderLineStyle?
Thanks in advance