L
Larry
Would there be some way to be able to go automatically to the previously activated document?
Please note: I'm not speaking of the previous document in the Window menu, which is activated by the PrevWindow command, but of the previously active document, wherever it may happen to be in the Window menu.
To put it another way, does Word created some "record" of the currently active document, so that the user can access that "record" and return to that document?
I'm working with Windows 97, which have a "open document" event that can be accessed with the AutoOpen macro, but it doesn't have an "active document" event. And that's what I need. In other words, every time a document is activated, the address of that document would be automatically recorded, and then it could be accessed by a macro. .
By the way, I have a set of two macros I created that enable me to go back and forth between any two documents. It's very handy, but using it requires me to run one macro before leaving the first document. This "sets" that document, and when I've gone to a second document, I run the second macro which activates the first document while also setting the second document so I can return to it. But what I want is something simpler whereby I don't have to set the first document but can with one step return to the previously active document.
Thanks.
Larry
Please note: I'm not speaking of the previous document in the Window menu, which is activated by the PrevWindow command, but of the previously active document, wherever it may happen to be in the Window menu.
To put it another way, does Word created some "record" of the currently active document, so that the user can access that "record" and return to that document?
I'm working with Windows 97, which have a "open document" event that can be accessed with the AutoOpen macro, but it doesn't have an "active document" event. And that's what I need. In other words, every time a document is activated, the address of that document would be automatically recorded, and then it could be accessed by a macro. .
By the way, I have a set of two macros I created that enable me to go back and forth between any two documents. It's very handy, but using it requires me to run one macro before leaving the first document. This "sets" that document, and when I've gone to a second document, I run the second macro which activates the first document while also setting the second document so I can return to it. But what I want is something simpler whereby I don't have to set the first document but can with one step return to the previously active document.
Thanks.
Larry