M
markl59
Hi,
I'm building a macro that buils and opens a new document from a User
Form contained in the current document. When I've built the new
document I want to close the current one and activate (or bring to the
front) the new one. However if I already have documents open, I
activate the new one but then the code to unload the old one appears to
reactivate it. Then when it does unload, focus goes to the first open
document., not my current one. Is there a way I can activate the new
doc without 'losing focus' when further code runs in the old one
(though it is only a Close ).
Thanks for any ideas,
Mark
I'm building a macro that buils and opens a new document from a User
Form contained in the current document. When I've built the new
document I want to close the current one and activate (or bring to the
front) the new one. However if I already have documents open, I
activate the new one but then the code to unload the old one appears to
reactivate it. Then when it does unload, focus goes to the first open
document., not my current one. Is there a way I can activate the new
doc without 'losing focus' when further code runs in the old one
(though it is only a Close ).
Thanks for any ideas,
Mark