daillest319
Programmer
i have most of my code created im just having trouble coverting this to work in my vbs script. can anyone help?
Code:
ActiveSheet.PivotTables("Pivot Table").PivotSelect "Year[All;Total]", _
xlDataAndLabel, True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 12632256
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Font.Bold = True
ActiveSheet.PivotTables("Pivot Table").PivotSelect "Hospital[All;Total]", _
xlDataAndLabel, True
Selection.Font.Bold = True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 12632256
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.PivotTables("Pivot Table").PivotSelect "'Column Grand Total'", _
xlDataAndLabel, True
Selection.Font.Bold = True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 12632256
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("E5").Select