View Single Post
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
aboeing aboeing is offline
external usenet poster
 
Posts: 8
Default Spell checker word 2007 - spell check pasted text

Thanks Graham, that solved the issue.
(for others: developer menu is enabled via the office button, popular
settings)
(sorry for the delayed response, I didn't recieve an email notification)

"Graham Mayor" wrote:

If you paste the text into a blank document what language is applied to the
pasted text. This should be the language applied to the source text.
You could force the required language with a macro whenever you paste by
intecepting the paste command eg

Sub EditPaste()
With Selection
.Paste
.WholeStory
.LanguageID = wdEnglishUS
.NoProofing = False
Application.CheckLanguage = False
End With
End Sub


--

Graham Mayor - Word MVP

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



aboeing wrote:
Thanks for your reply.

From where are you copying the text?


Various applications, one example is Visual Studio 2005

If you use Edit paste special unformatted text (or the following
macro) the inserted text will adopt the format of the location into
which it is pasted.


Yes, thanks, this avoids the notepad workaround, however the text
formatting issue remains (ie: the text looses its formatting)

I already have a number of documents with incorrect spelling that I
did not notice previously, so I am really hoping to find a solution
that will allow me to run the spell checker and preserve the
formatting.

Presumably Word2007 inserts some magic "don't spell check this" tag,
which then unfortunately flows on to the rest of the document after
the paste-point. I'm hoping to find a way to tell word to spell check
everything.