G
GoldenPenny
I am trying to write a macro where I start from an open document. Then I
open another document containing a grid that must be inserted into the first
document. I copy the grid and return to the first document, paste the grid,
then close the document containing the grid.
My problem is returning to the first document. When I use the macro
recorder, the line reads:
Windows("Document2").Activate
The document I want to return to is not necessarily name "Document2".
How do I return to whatever the original document is?
Thanks so much.
open another document containing a grid that must be inserted into the first
document. I copy the grid and return to the first document, paste the grid,
then close the document containing the grid.
My problem is returning to the first document. When I use the macro
recorder, the line reads:
Windows("Document2").Activate
The document I want to return to is not necessarily name "Document2".
How do I return to whatever the original document is?
Thanks so much.