Color Properties

D

Diego

Hi!
i used to have the next instructions

view.HeaderBackColor = "Gold"
oDimension1.Fields(0).GroupedBackColor = "MidnightBlue"
oDimension1.Fields
(0).GroupedFont.Color = "Lavender"

and they work fine, now they are giving me errors

any idea?

thanks
 
D

Dip

Hi,
Have you done this way;
------
----
Dim ptConstants

Set ptConstants = PivotTable.Constants

With PivotTable.ActiveView

.FieldLabelBackColor = "LightSeaGreen"
.TotalBackColor = "White"
.HeaderBackColor = "Gold"
-------------------------------
-------------------------------
------------------------------
.RowAxis.FieldSets( sDimStream1
).Fields(0).GroupedBackColor = "MidnightBlue"
.RowAxis.FieldSets( sDimStream1
).Fields(0).GroupedFont.Color = "Lavender"

-------------------
I have done this way and it's working without any trouble.
sDimStream1 is my Dimension name stored in a CONST Global variable.
What kind of error you getting anyway?

Cheers.
Dip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top