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

Tim Golden mail at timgolden.me.uk
Tue Jan 15 11:05:51 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. i need your expert advice. thanks

My advice to you is: find an example in VBS/VBA which does
what you expect and then port it (or post it here so we
can help you port if needs be). Better still, record a Macro
in Word which does what you want, and port *that*.

IOW, this isn't so much a Python question as a Word/COM/VBA
one.

TJG


More information about the python-win32 mailing list