[python-win32] Excel / Word: setting properties
Niemann, Hartmut
hartmut.niemann at siemens.com
Fri Mar 2 03:07:05 EST 2018
Hello Tim!
print ('%r' % workbook.BuiltinDocumentProperties)
gives me
<COMObject <unknown>>
What can I do with such an object?
Mit freundlichen Grüßen
Dr. Hartmut Niemann
Siemens AG
Mobility Division
Rolling Stock
Standardization, Remote Control, Display
MO RS LM EN CCI SRD
Werner-von-Siemens-Str. 67
91052 Erlangen, Deutschland
Mobil: +49 173 5342327
mailto:hartmut.niemann at siemens.com
www.siemens.com/ingenuityforlife
-----Ursprüngliche Nachricht-----
Von: python-win32 [mailto:python-win32-bounces+hartmut.niemann=siemens.com at python.org] Im Auftrag von Tim Roberts
Gesendet: Mittwoch, 28. Februar 2018 18:20
An: Python-Win32 List
Betreff: Re: [python-win32] Excel / Word: setting properties
Niemann, Hartmut wrote:
>
>
>
> How do I set the [Excel workbook] standard property "Keywords" to
> "C_Restricted" and the user property "Document Confidentiality" to
> "Restricted"?
>
The Document object should have a BuiltinDocumentProperties collection and a CustomDocumentProperties collection that you can query and manipulate. You'll have to discover whether the properties you need to tweak are builtin or not.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
python-win32 at python.org
https://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list