Dan
Dan

Reputation: 57

Getting cell color from Powerpoint table cell via VBA

Hi I have a Table on a Powerpoint slide and I am trying to get the fill color for that cell to use elsewhere.

I am using:

Set c = colorTable.Rows(2).Cells(1) 
sColor = c.Shape.Fill.BackColor 

But it is always returning 16777215 which is white. The cell is clearly not white. Why is this not working?

Upvotes: 0

Views: 419

Answers (1)

John Korchok
John Korchok

Reputation: 4913

Use .ForeColor, not .BackColor.

Upvotes: 1

Related Questions