[python-win32] Excel / Word: setting properties

Niemann, Hartmut hartmut.niemann at siemens.com
Wed Feb 28 09:09:45 EST 2018


Hi!

I create an excel document using the COM interface.

Now I need to set two properties to be compatible with a new company rule:

"[the tool] uses MS Office standard ('Keyword') and custom ('Document Confidentiality') properties. so if your code is able
to preset values to these properties [everything should work]"

How do I set the [Excel workbook] standard property "Keywords" to "C_Restricted" and the user property "Document Confidentiality" to "Restricted"?

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<https://siemens.com/ingenuityforlife>
[www.siemens.com/ingenuityforlife]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180228/3212905b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 3536 bytes
Desc: image001.gif
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180228/3212905b/attachment.gif>


More information about the python-win32 mailing list