M
Miskacee
I have a macro that goes back and forth between two documents. One document
will also be the same name while the other document will always have a
different name. In the past, I was able to create: Windows(2).Activate or
Windows(1).Activate and the macro worked fine flipping back and forth.
However, now active window (1) has become active window (2) and vice versa
for some reason and therefore, the macro won't function properly. I am able
to call the one document that remains static in name but would like to locate
code that would call the other active window, no matter what the name. I
know I use $ in the code but don't remember how to focus on the document that
would have a different name.
The net net, I'm copying information from one document and placing it in
another document which is a 'table' via bookmarks and cross-references.
Thank you for any help you can provide.
will also be the same name while the other document will always have a
different name. In the past, I was able to create: Windows(2).Activate or
Windows(1).Activate and the macro worked fine flipping back and forth.
However, now active window (1) has become active window (2) and vice versa
for some reason and therefore, the macro won't function properly. I am able
to call the one document that remains static in name but would like to locate
code that would call the other active window, no matter what the name. I
know I use $ in the code but don't remember how to focus on the document that
would have a different name.
The net net, I'm copying information from one document and placing it in
another document which is a 'table' via bookmarks and cross-references.
Thank you for any help you can provide.