[python-win32] need help for searching of text in a textbox for ms word

Tim Roberts timr at probo.com
Tue Jan 15 19:03:18 CET 2008


a_n_s_h_a_n wrote:
> hi guys! i need help again. so i have this python program that is 
> supposed to search and replace text in ms word. i have successfully 
> searched and replaced all needed text but the problem is it only 
> replaces the normal text and not the ones found in textboxes.

Tim G's advice is right on, but as a little hint, textboxes in a Word 
document are considered "shapes", and are stored in the Document.Shapes 
collection.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list