Re: send text from word doc to .txt file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: sarah (sarah_at_discussions.microsoft.com)
Date: 02/17/05


Date: Thu, 17 Feb 2005 08:53:05 -0800

i want to perform a spell and grammar check in a minority language on the
text in ms word.the checker is in perl and is used at the command line - dos
prompt by typing the name of the perl module and the .txt file you wish to
check for errors.

i am sending the text from a word document by using the vba behind word to a
.txt file. I want to do this as the user types so that it is continuosly
checking spelling. I think i will need to use some kind of loop.

The grammar check will not work on a .doc file as there is a lot of
formatting - extra white spaces.

"Jean-Guy Marcil" wrote:

> sarah was telling us:
> sarah nous racontait que :
>
> > Is there a way to select all of the text on an open word document
> > through vba and send it to a .txt file?
>
> Why VBA?
> You can save as *.txt from the Save As dialog.
>
> > Also could this be done continuously so that the word document and
> > text file contain the same words?
>
> What do you mean by "continuously "?
> As you type? Whenever you save? Periodically?
>
> > What about formatting in word, is there a way of getting past this so
> > that extra white space is not sent to the txt file?
> >
>
> What do you mean by "extra white space"?
> Double spaces between words? Empty paragraphs? Both? Something else?
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>
>



Relevant Pages

  • Re: send text from word doc to .txt file
    ... i want to perform a spell and grammar check in a minority language on the ... text in ms word.the checker is in perl and is used at the command line - dos ... formatting - extra white spaces. ... >> Is there a way to select all of the text on an open word document ...
    (microsoft.public.word.vba.general)
  • Re: perl 5 grammar
    ... Mike> I maintain the syntax highlighter for code.google.com and perl support ... Mike> is rather lacking. ... Mike> simple lexical grammar for perl 5 that will allow me to at least ... even likely in someone's production code. ...
    (comp.lang.perl.misc)
  • Re: Convert MS-Word to plain text
    ... I actually just ended up using Python with the win32 extensions. ... that I was looking for a perl module i can run in a linux environment ... including open Word document and save it as text ... I used OpenOffice UNO from ...
    (comp.lang.perl.modules)
  • Re: Looking for Perl Grammar
    ... And if the program has 'use Module;', to determine which user-defined functions take arguments and which do not requires actually parsing the Module. ... However I'm really not writing grammar for perl, but use similar way, how perl parse itself. ... my parsing gools is reporting functions, ...
    (comp.lang.perl.misc)
  • Re: Looking for Perl Grammar
    ... > I'm writing a Perl parser and I'm looking for a pure perl grammar. ... > documentation from perl is not a pure grammar, ...
    (comp.lang.perl.misc)