Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this error
"object variable are not set" and when I hit debug it highlight as below "ActiveChart.SeriesCollection(1).Interior.ColorInd ex = 0" I have to put this at the begining to make sure no color first What I have to do? Any comment on this Thnks Daniel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Daniel,
Probably because you have not selected a chart. Try something like this - Dim cht As Chart Set cht = ActiveChart If cht Is Nothing Then MsgBox "Select a chart" Exit Sub End If cht.SeriesCollection(1).Interior.ColorIndex = xlNone ' transparent fill Of course you could set the cht reference to any chart you want without selecting it. Regards, Peter T "Daniel" wrote in message ... I have this error "object variable are not set" and when I hit debug it highlight as below "ActiveChart.SeriesCollection(1).Interior.ColorInd ex = 0" I have to put this at the begining to make sure no color first What I have to do? Any comment on this Thnks Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime Error '91' Object variable or With block variable not set | Excel Discussion (Misc queries) | |||
Need help with Error 'object variable or with block variable not set' | Excel Programming | |||
Getting inconsistent Error 91-Object variable or With block variable not set | Excel Programming | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming |