csehz
asked on
VBA Excel 2000 - Basic colors handling
Dear Experts,
Could you propose a reliable way of using VBA commands about font coloring?
I am aware two versions for example to blue
Worksheets("Sheet1").Range ("A1").Fon t.ColorInd ex = 6 - this using the place of color from pallet
Worksheets("Sheet1").Range ("A1").Fon t.Color = 16711680 - this would set the blue color, but as I perceive at default color pallet settings, it became yellow :-)
Is there maybe chance to use RGB values in VBA?
thanks,
Could you propose a reliable way of using VBA commands about font coloring?
I am aware two versions for example to blue
Worksheets("Sheet1").Range
Worksheets("Sheet1").Range
Is there maybe chance to use RGB values in VBA?
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ActiveWorkbook.ResetColors
and after selecting the blue from the palette, which will be always on the same place in this way
Selection.Font.ColorIndex = 5