E
Eric G
Windows XPP SP2
Office Professional 2003 SP1
Hello,
I'm writing documents in 9 different languages. I've Office Proofing Tools 2003, installed for all languages.
In Word, I experience that sometimes, often when text is copied between various documents, the default document language change for a paragraph, or two. I've created some simple macros that sets the complete document language to the language I require and they all work fine. The macros simply selects the entire document, then sets the language, e.g. "Swedish" and when finished executing, the cursor position finishes up at the end of the document.
Is there a way, so to say, to anchor, or for the cursor to return to its original cursor position, where it was positioned, when macro was started after the macro is executed?
Below is a sample of my simple macros.
Sub Select_Entire_Document_SE()
'
' Select_Entire_Document_SE Macro
' Macro recorded 6/12/2004 by EG
'
Selection.WholeStory
Selection.LanguageID = wdSwedish
Selection.NoProofing = False
Application.CheckLanguage = True
Selection.EndKey Unit:=wdStory
End Sub
I would be grateful for any suggestions.
Eric G
Stockholm, Sweden
Office Professional 2003 SP1
Hello,
I'm writing documents in 9 different languages. I've Office Proofing Tools 2003, installed for all languages.
In Word, I experience that sometimes, often when text is copied between various documents, the default document language change for a paragraph, or two. I've created some simple macros that sets the complete document language to the language I require and they all work fine. The macros simply selects the entire document, then sets the language, e.g. "Swedish" and when finished executing, the cursor position finishes up at the end of the document.
Is there a way, so to say, to anchor, or for the cursor to return to its original cursor position, where it was positioned, when macro was started after the macro is executed?
Below is a sample of my simple macros.
Sub Select_Entire_Document_SE()
'
' Select_Entire_Document_SE Macro
' Macro recorded 6/12/2004 by EG
'
Selection.WholeStory
Selection.LanguageID = wdSwedish
Selection.NoProofing = False
Application.CheckLanguage = True
Selection.EndKey Unit:=wdStory
End Sub
I would be grateful for any suggestions.
Eric G
Stockholm, Sweden