Switching word order in MS Word

translation_articles_icon

ProZ.com Translation Article Knowledgebase

Articles about translation and interpreting
Article Categories
Search Articles


Advanced Search
About the Articles Knowledgebase
ProZ.com has created this section with the goals of:

Further enabling knowledge sharing among professionals
Providing resources for the education of clients and translators
Offering an additional channel for promotion of ProZ.com members (as authors)

We invite your participation and feedback concerning this new resource.

More info and discussion >

Article Options
Your Favorite Articles
Recommended Articles
  1. ProZ.com overview and action plan (#1 of 8): Sourcing (ie. jobs / directory)
  2. Réalité de la traduction automatique en 2014
  3. Getting the most out of ProZ.com: A guide for translators and interpreters
  4. Does Juliet's Rose, by Any Other Name, Smell as Sweet?
  5. The difference between editing and proofreading
No recommended articles found.

 »  Articles Overview  »  Technology  »  Switching word order in MS Word

Switching word order in MS Word

By Christopher Lord | Published  08/9/2006 | Technology | Recommendation:RateSecARateSecARateSecARateSecARateSecI
Contact the author
Quicklink: http://jpn.proz.com/doc/824
Author:
Christopher Lord
フランス
フランス語 から 英語 translator
 

See this author's ProZ.com profile
Anybody working with MS Word documents and overwriting an original formatted text will often find that they need to change the word order, say from ‘interest general’ to ‘general interest’. This can obviously be done by cutting and pasting, drag and drop, and so on, but it suddenly came to me that what you need is a little macro to do this. In fact I have written two, one to change ‘interest general’ to ‘general interest’ and the other to change ‘Interest general’ to ‘General interest’ – ie changing the case at the same time so that the first word starts with a capital letter after the switch. I have found these macros extremely useful (though this is because of my particular translation techniques, and also because the Romance languages which I translate often reverse English word order for noun + adjective etc.), and here they are as a resource for anyone else who wants them. They can quickly be integrated into your normal typing. It would be easy to create similar macros for three-word groups, but it is probably not worth it, as you wouldn’t remember what you were doing.

Sub switch()
'
' switch Macro
' Macro recorded 7/6/2006 by jim
'
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Cut
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.PasteAndFormat (wdPasteDefault)
End Sub


Sub switchcaps()
'
' switchcaps Macro
' Macro recorded 7/6/2006 by jim
'
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Range.Case = wdLowerCase
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Range.Case = wdUpperCase
Selection.MoveLeft Unit:=wdWord, Count:=1
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Cut
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.PasteAndFormat (wdPasteDefault)
End Sub


Copyright © ProZ.com, 1999-2024. All rights reserved.
Comments on this article

Knowledgebase Contributions Related to this Article
  • No contributions found.
     
Want to contribute to the article knowledgebase? Join ProZ.com.


Articles are copyright © ProZ.com, 1999-2024, except where otherwise indicated. All rights reserved.
Content may not be republished without the consent of ProZ.com.