I am trying to capitalize the first letter string sent
in the array arr
. The part of the code that does not work is the Right
function, which causes the code to return an error. What could be the fix?
For Each sent In arr
sent = UCase(Left(sent, 1)) & Right(sent, Len(sent) - 1)
arr(i) = sent
i = i + 1
Next