DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: How to get RGB colors or HEX colors out of word using VB

Surprisingly simple! Just replace

fontColor = foundRange.Font.Color

with

fontColor = foundRange.Font.Fill.ForeColor.RGB

then you'll get them.

Top comments (0)