G
guylaine.constant
Hi,
Hi have a macro that does something in the opened "Document A",
then open "Document B",
copy something from Document B
doesn’t close Document B cause I will need it later.
go back to Document A
paste information,
go back to Document B, etc.
While playing the macro, there might be already opened Document C,
Document D, etc.
In this macro, "Document B" is always the same so it's easy to "call"
it. But Document A is not always the same.
So how I can switch between A and B and be sure that I always come
back in the proper document i.e. “Document A”?
I tried by making sure before playing the macro that I have only
Document A open so I could use “Windows(1).Activate” but it works on
and off. Same thing if I write “Windows(2).Activate”
Any help?
Thank you!
S.
Hi have a macro that does something in the opened "Document A",
then open "Document B",
copy something from Document B
doesn’t close Document B cause I will need it later.
go back to Document A
paste information,
go back to Document B, etc.
While playing the macro, there might be already opened Document C,
Document D, etc.
In this macro, "Document B" is always the same so it's easy to "call"
it. But Document A is not always the same.
So how I can switch between A and B and be sure that I always come
back in the proper document i.e. “Document A”?
I tried by making sure before playing the macro that I have only
Document A open so I could use “Windows(1).Activate” but it works on
and off. Same thing if I write “Windows(2).Activate”
Any help?
Thank you!
S.