I think the problem with my code was just that I used a Byte instead of an Integer for L, so try this instead:
The problems you're getting using Mick's modified version are:
1) L needs to be one greater than the length of the original string, so that when you colour it starts at the next character after the end of your original string.
2) Because L is greater than the length of your original string, you need to have the If statement in place to stop errors coming up - for example if the use cancels the input box or doesn't enter any text. (Although adding the extra space will help in this case, it's good practice to catch these sorts of things.)
3) If you want to colour everything from L to the end of your string, you don't need to specify the Length for Character. Specifying Length is the reason your last letter is not getting coloured; without it the colour should go all the way to the end, however many extra spaces you add in..
4) It's better to use ampersands (&) when concatenating text, rather than plus signs.
Bookmarks