I want to change the colour of the characters in a string, following a change event which is: "when the value any character is less than unity".
The value of a character is defined based on the font except for the special cases 2 & 3 given in Table 1.
All character values are in the subset {1, 2/3, 1/3, 1/6}.
To explain the same thing in a different way, the criteria for the colour change, from one character to the next is:
* When the next character has a value less than 1, change colour.
If the next colour has a value of 1 then colour is the same as the previous character.
The colour of each character is based on the absolute cumulative value sum. Let x be any whole number, then colour is:
- RGB(0, 255, 0): x (any whole number)
- RGB(255, 0, 0): x + 1/6
- RGB(204, 51, 0): x + 1/3
- RGB(153, 102, 0): x + 1/2
- RGB(102, 153, 0): x + 2/3
- RGB(51, 204, 0): x + 5/6
The font, character and value combinations are in Table 1:
I have posted a similar question previously but this is more complicated.Please Login or Register to view this content.
https://www.excelforum.com/excel-pro...e-strings.html
As an example:
Arial.Arial,ArialA-NC-N
Bookmarks