[Tutor] Edit a Word document programmatically CORRECTION Open not open
Alan Gauld
alan.gauld at btinternet.com
Wed Oct 15 01:08:25 CEST 2008
"bob gailer" <bgailer at gmail.com> wrote
>> docOrig =
>>
>> app.Documents.Open('n:\\MetroPlanners\\2006\\MCHResearchProject.doc')
>> range = docOrig.Content()
>>
> Try range = docOrig.Range()
But don't use range as a variable name or you will hide the
builtin function range().
And that will make many for loops difficult to do!
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list