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.niem...@siemens.com www.siemens.com/ingenuityforlife -----Ursprüngliche Nachricht----- Von: python-win32 [mailto:python-win32-bounces+hartmut.niemann=siemens....@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, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32