how to change chart line colors in vba 6.0?

Elainaz

New Member
Joined
Apr 8, 2019
Messages
6
Does anyone know how to hange chart line colors in vba 6.0?
I tried the way vba 7.0 uses to change them, but it fails.
I can't update its version or install an updated excel cos it's my company's pc and they forbid any new app installation.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
record a macro on the vb6 machine and you will know . .
from my archives: SeriesCollection(1).Border.ColorIndex and then a number
but I'm not sure it is vb6 :)
 
Last edited:
Upvote 0
Maybe this...
Code:
With Sheets("Sheet1").ChartObjects(1).Chart.SeriesCollection(1).Border
.ColorIndex = 1
'.Weight = xlMedium
'.LineStyle = xlContinuous
End With
HTH. Dave
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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