
VBA Font in Excel — Set Color, Bold and Size in Code (and the ColorIndex Trap)
The Font object is the text layer of a cell in Excel VBA — color, bold, italic, size and name, none of which touch the value underneath. The catch is color. There are three ways to set it and they use different number spaces. Range.Font.Color takes a 24-bit RGB number, Range.Font.ColorIndex takes a 1 to 56 palette index, and the two are not interchangeable. Learn which one to use, how to bold or resize part of a cell with Characters, why value-based coloring belongs to Conditional Formatting, and how to read a font color back without getting the wrong number.











































![Excel Sum of Time Over 24 Hours — Why Your Total Resets (and the [h]:mm Fix)](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fblog-assets%2Fexcel-sum-time-over-24-hours%2Fhero.png&w=1200&q=75)







































































































![How to Convert .xlsb to .xlsx — 5 Free Methods (Excel, Online, Python, VBA) [2026]](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fcovers%2Fv2-launch-agent-excel.png&w=1200&q=75)





















