Group:  Microsoft Word ยป microsoft.public.word.docmanagement
Thread: Transpose 2 characters, as in "prefect" to "perfect"

Geek News

Transpose 2 characters, as in "prefect" to "perfect"
Buteonidae 12/6/2008 5:57:00 AM
I'm using Word 2007, but this question would apply to most versions of the
software.

In the early days, there was a simple keyboard shortcut (no cumbersome
macro, Vbase language, etc.) to transpose two mis-typed letters. For
instance, if one typed "prefect" instead of "perfect" (a case in which a
spell-check will not help), one could put the cursor between the R and the E
and hit something simple like control-T, and the two letters would switch
places.

Nowadays, control-T creates a hanging indent - all well and good, since I
use a lot of those - but I can't remember the little shortcut that transposes
letters. Can anyone help? Many thanks!


Re: Transpose 2 characters, as in "prefect" to "perfect"
"Graham Mayor" <gmayor[ at ]REMOVETHISmvps.org> 12/6/2008 7:14:54 AM
You'll need the 'cumbersome macro'.

With Selection
.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
.Cut
.MoveRight Unit:=wdCharacter, Count:=1
.Paste
End With

which you can attach to a keyboard shortcut of your choice - see
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Buteonidae wrote:
[Quoted Text]
> I'm using Word 2007, but this question would apply to most versions
> of the software.
>
> In the early days, there was a simple keyboard shortcut (no cumbersome
> macro, Vbase language, etc.) to transpose two mis-typed letters. For
> instance, if one typed "prefect" instead of "perfect" (a case in
> which a spell-check will not help), one could put the cursor between
> the R and the E and hit something simple like control-T, and the two
> letters would switch places.
>
> Nowadays, control-T creates a hanging indent - all well and good,
> since I use a lot of those - but I can't remember the little shortcut
> that transposes letters. Can anyone help? Many thanks!


Re: Transpose 2 characters, as in "prefect" to "perfect"
Buteonidae 12/6/2008 4:18:02 PM


"Graham Mayor" wrote:

[Quoted Text]
> You'll need the 'cumbersome macro'.

Thank you, Graham Mayor.
The macro was indeed somewhat cumbersome to install, but works like a charm.
As to why Weird Willie Gates hasn't simply installed this macro and a
corresponding button in Word, we can only look to the gods, no?

Thanks again!
Re: Transpose 2 characters, as in "prefect" to "perfect"
"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> 12/8/2008 9:18:52 AM
A less cumbersome macro:

With Selection
.Text = Mid(.Text, 2) & Left(.Text, 1)
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Buteonidae" <Buteonidae[ at ]discussions.microsoft.com> wrote in message
news:D681C161-6FD1-4EE5-AD19-49CF0DE715D4[ at ]microsoft.com...
[Quoted Text]
>
>
> "Graham Mayor" wrote:
>
>> You'll need the 'cumbersome macro'.
>
> Thank you, Graham Mayor.
> The macro was indeed somewhat cumbersome to install, but works like a
> charm.
> As to why Weird Willie Gates hasn't simply installed this macro and a
> corresponding button in Word, we can only look to the gods, no?
>
> Thanks again!


Re: Transpose 2 characters, as in "prefect" to "perfect"
JEV 12/9/2008 5:30:01 PM
I think you can set up an Exclusion dictionary, too to catch with spellcheck
those words that are valid but less likely to actually be the appropriate
context:

prefect perfect
pubic public
coarse course
manger manager


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net