Multiple Word docs open - how to set focus

  reddwarfcrew 19:44 24 Jan 06
Locked

Hi,

I have a macro that opens a new blank document and then runs some code.

However, if I have other docs already open, the new document does not have focus (is the active document). Therefore some (not all) of the code is applied to the active document that currently has focus.

Is there a way to make the new document the active document?

I'm on Word 2003.

Thanks.

(ps I can do a workaround that closes all open docs first and therefore by default leaving my new document the only document, but it isn't ideal).

This thread is now locked and can not be replied to.

Best phone camera 2016/2017: Galaxy S7 vs iPhone 7 vs Google Pixel vs HTC 10 Evo vs OnePlus 3T vs…

1995-2015: How technology has changed the world in 20 years

Best Christmas Agency Projects of 2016

Super Mario Run preview | Hands-on first impressions of Super Mario Run: Mario's iPhone & iPad…