Search and extract text in MS Word

questioner bstoyanov at dspace.de
Tue May 25 09:30:07 EDT 2004


Hello everyone,

I want to find text and extract a rest of line after the found line till
line end.
Does anyone know how to do this?

Regards,

P.S. My code looks like this so far:
word = win32com.client.Dispatch("Word.Application")
doc =  word.Documents.Add(filenamePath.doc)
search = doc.Content.Find
?... and then ... ?




More information about the Python-list mailing list