I have tables Table32 and Table28.
Both were first created and then each of them was selected and then a quick style was selected for each of them from the Excel ribbon's link "Table design / Quick styles".
Table32 was assigned a "quick style" by the name White, Table Style Medium 4 and Table28 was assigned a "quick style" by the name Green, Table Style Medium 7.
Now they look like this:
Now I want to write a VBA code which does something regarding of the table's color.
So I found out that I can detect TableStyle like this:
Debug.Print Sheet20.ListObjects("Table32").TableStyle
TableStyleMedium4
Debug.Print Sheet20.ListObjects("Table28").TableStyle
TableStyleMedium7
But I simply can't detect the color! I get the same value for both tables!?
Debug.Print Sheet20.ListObjects("Table32").HeaderRowRange.Interior.Color
16777215
Debug.Print Sheet20.ListObjects("Table28").HeaderRowRange.Interior.Color
16777215
I was expecting to get White and Green according to the chosen "quick styles" White, Table Style Medium 4 and Green, Table Style Medium 7 that I selected from the ribbon...
