Hi Jan,
Private or Public variables live only during execution of a macro. Global
variables survive between two executions.
In your dialog example this is same. The macro ShowDialog does not exit because
Dlg.execute waits for the dialog to be closed. You can verify this by inserting
a MsgBox("Hello") just after Dlg.execute.
Regards
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]