Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to convert selected text to sentence case?


How Are YOU

to this

How are you

share|improve this question
@ChrisF - Word 2007 and notepad both – metal gear solid Jan 9 '10 at 17:12
StringLower, string, clipboard  
StringTrimLeft, output, string, 1  
StringLeft, FirstChar, string, 1  
StringUpper, FirstChar, FirstChar  
sendraw %FirstChar%%output%  

Horribly hacky, but it works :)

Proof: How are you

share|improve this answer
lol @ the String trim. XD. Creative. – RJFalconer Jan 9 '10 at 17:51
I write my worst code before caffeine, but it always works! I bet somebody's gonna come and tell me there's a function for it anyway :P – Phoshi Jan 9 '10 at 17:53
it's not working it's giving this output ^!v:: clipboard:=clipboardall stringlower, string, clipboard stringtrimleft, output, string, 1 stringleft, firstchar, string, 1 stringupper, firstchar, firstchar sendraw %firstchar%%output% return: – metal gear solid Feb 4 '10 at 8:21
@Jitendra; That's correct output. Unfortunately I didn't have time to support multiple lines. (It's capitalising the ^ in ^!v, thus you see no capitalisation) – Phoshi Feb 4 '10 at 8:49
I want to change "How Are YOU" to "How are you" and this script is not working. – metal gear solid Feb 4 '10 at 18:25

In word 2003, select the text, "format" menu, "change case", "sentence case"

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .