Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to convert selected text to sentence case?

like

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

2 Answers 2

^!v::  
clipboard:=ClipboardAll  
StringLower, string, clipboard  
StringTrimLeft, output, string, 1  
StringLeft, FirstChar, string, 1  
StringUpper, FirstChar, FirstChar  
sendraw %FirstChar%%output%  
Return  

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.