in reply to win32 ole and power point
CustomDocumentProperties is a property so access it as such.
There may be other issues with your code but I stopped looking when I got to that line. *shrug*