Transpose 2 characters, as in "prefect" to "perfect"

B

Buteonidae

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!
 
G

Graham Mayor

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
B

Buteonidae

Graham Mayor said:
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!
 
D

Doug Robbins - Word MVP

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
 
J

JEV

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top