试图在我的纸浆桌上给各栏的字体贴上白色。
I tried doing it like this:
Format column field headers
For Each pvtField In pvtTable.ColumnFields
With pvtField.LabelRange
.Interior.Color = RGB(0, 0, 77) Dark Blue
.Font.Color = RGB(255, 255, 255) White
.Font.Bold = True
End With
Next pvtField
But it didnt work, then I tried a more manual way, like this:
Column headers are the fith row in TableRange2
Set headerRow = pvtTable.TableRange2.Rows(5)
With headerRow
.Interior.Color = RGB(0, 0, 77) Dark Blue
.Font.Color = RGB(255, 255, 255) White
.Font.ColorIndex = 2 White White
.Font.Bold = True
End With
第2条 蓝色正确,但不是真白。
Any ideas?