Hi Paolo
This workaround involve to implement helper functionalities into a service or basic library installed as part of the macro recorder, but I'm trying to avoid such dependancies for the generated code, because the user has to be free to save the macro to a document and send it to someone else and I would like that recorded macros would run even if the recorder is not installed on the target system
No i thought writting this sub dynamically in the same module no helper dependancy of course keeping the dispatcher can be a solution but should be reserved for very complicated cases btw,this does not answer your question of symplifying the code Laurent -- Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org Indesko >> http://www.indesko.com Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org Livre "Programmation OpenOffice.org", Eyrolles 2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]