automatically insert text in ms-word properties

Tim Rowe digitig at gmail.com
Tue Oct 7 14:03:39 EDT 2008


2008/10/7 Peter Wang <peterwang at vip.qq.com>:
> "gita ziabari" <gitaziabari at gmail.com> writes:
>
>> All,
>>
>> I wanna use python to automatically insert text in ms-word properties.
>> Anyone could help me?
> Why not use VBA for that work?

Why use VBA?

It's actually not a straight choice. VBA is pretty much all that's
available if you're doing it from *inside* Word, it's not available if
you're doing it from *outside* Word. VB is available from outside
Word, but I for one would much sooner use Python in that case.

The difficulty isn't with the language, it's with lack of
documentation on Office Automation access to document properties. If
Gita can find that, Python should be at least as good for the job as
VB (and I think I'm being unduly kind to VB in putting it like that!)

-- 
Tim Rowe



More information about the Python-list mailing list