>How did you prove that the macro didn't run? Because nothing happened. The macro is supposed to change text in the Draw file and display a graphic. Also, the "print 'hallo'" line doesn't run. The macro is not called. This is a case where running the same code with the same input results in different behavior, which should never happen.
> Douglas Staas wrote: > >> I'm still not sure if I understood you correctly. > > > > Here are the steps to recreate this situation. Let me know if something > > isn't > clear. > > > > 1: open some other OO doc > > 2: open my binder covers template OO doc > > 3: the macro that runs on the open event (PromptForValues) brings up a > > dialog. > > 4: enter values in the dialog and click 'OK' > > 5: nothing happens > > 6: try rerunning PromptForValues. nothing happens after the dialog closes > > 6: open the macro editor > > 7: run PromptForValues again, enter values in the dialog > > 8: after the dialog closes, Texts will be updated with the values you > > entered > > 9: close all OO docs > > 10: open my binder covers template OO doc > > 11: the macro that runs on open (PromptForValues) brings up a dialog > > 12: enter values in the dialog and click 'OK' > > 13: after the dialog closes, Texts will be updated with the values you > > entered > > > > Summary: Macros don't run when a 2nd OO file is open unless the macro editor > > is open. > > How did you prove that the macro didn't run? Maybe it ran but just > didn't work? Place a "print hallo" into the macro that should be called > by pressing "OK", save the document with the macros, do the procedure > again and see if the macro is called in step 5. > > Best regards, > Mathias > > -- > Mathias Bauer - OpenOffice.org Application Framework Project Lead > Please reply to the list only, [EMAIL PROTECTED] is a spam sink. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]