The reason you got the error was because you didn't enter anything into the CC (it was showing placeholder text) so there was no range.characters.first to format.
Error handling can be used to get around that, but another method is to evaluate if the condition exists that caused the error exists and if it does, don't perform the action that causes the error.
|