I
Iain McLaren
Hi,
I have come across a strange problem in Word/VBA 2003. I have a macro that
runs when the user tries to print a document. It opens up a dialog box with
various timesaving options. The code behind the form has several Form.Hide
commands for the cancel button, escape key etc.
The strange thing is that when multiple documents are open and this form
opens or closes, the active document changes randomly between the one that
was intended to be printed and one of the others that is open.
The only workaround I've found is to change all occurences of 'Form.Hide' to
'End' in the form's code.
Is this acceptable practice, or is there a better way?
Thanks,
Iain
I have come across a strange problem in Word/VBA 2003. I have a macro that
runs when the user tries to print a document. It opens up a dialog box with
various timesaving options. The code behind the form has several Form.Hide
commands for the cancel button, escape key etc.
The strange thing is that when multiple documents are open and this form
opens or closes, the active document changes randomly between the one that
was intended to be printed and one of the others that is open.
The only workaround I've found is to change all occurences of 'Form.Hide' to
'End' in the form's code.
Is this acceptable practice, or is there a better way?
Thanks,
Iain