Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using VbScript to automate Excel.
The only way I know to programmatically add text with different colours to a cell is using the 'Characters' function on an existing text: oExcel.Cells(1, 1) = "This is a Text" oExcel.Cells(1, 1).Characters(6, 2).Font.ColorIndex = 5 This colors "is" in blue What I want is a function or a way that colors directly when putting the text in the cell: oExcel.Cells(1, 1) = "This " ... then the function that makes text blue oExcel.Cells(1, 1) = oExcel.Cells(1, 1) & "is " .... then the function that makes text black oExcel.Cells(1, 1) = oExcel.Cells(1, 1) & "a Text" Does anybody know such a function or way? Manfred |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple text colours in a single cell | Excel Discussion (Misc queries) | |||
Don't change cell colours when adding or deleting rows? | Excel Discussion (Misc queries) | |||
different text colours in the same cell in excel | Excel Worksheet Functions | |||
Adding cells by colours | Excel Discussion (Misc queries) | |||
Excel 2003 font colours and cell colours | Excel Discussion (Misc queries) |