Apache OpenOffice (AOO) Bugzilla – Issue 97235
With..End With does not work with user-defined Type
Last modified: 2008-12-13 23:07:31 UTC
User-defined types do not retain values set within a "With...End With" block. A small document demonstrating the problem is attached.
Created attachment 58799 [details] Small document with macro demonstrating user-defined type With..End With bug
You have to write a dot inside the with statement in front of the object property, for example .key1 instead of key1. You can avoid such errors using the directive Option Explicit. Than you would have got an error "key1" is not defined.
Created attachment 58801 [details] java error report
Sorry attached file to wrong Issue
closing, no error in OOo