ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VB6.0 and Excel (https://www.excelbanter.com/excel-programming/288095-vb6-0-excel.html)

mark

VB6.0 and Excel
 
I am referencing a Excel object from a VB 6.0 application
and I can't set the font color of an individual cell. How
do you do it?

pikus

VB6.0 and Excel
 
Cells(1, 1).Font.ColorIndex = 3

3 = Red
Other #s = other colors

- Piku

--
Message posted from http://www.ExcelForum.com


Ron de Bruin

VB6.0 and Excel
 
You can use ColorIndex

Range("a1:a10").Font.ColorIndex = 3


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Mark" wrote in message ...
I am referencing a Excel object from a VB 6.0 application
and I can't set the font color of an individual cell. How
do you do it?





All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com