G
G Teachman
Hello,
I want to cut and paste from one active document to another and keep the
first document window on top.
Code I'm working with:
Dialogs(wdDialogFileOpen).Show
' user selects the Main.docx file
' Main.docx is activated by default
' select and copy stuff from Main.docx
' open Target.docx via
Documents.Open FileName:="""Target.docx""" 'etcetera
' Target.docx is now active and it's window is on top
' paste stuff
Now I want to make Main.docx activated and it's window on top.
I can activate it easily enough by Windows("Main.docx").Activate
But I can't figure out how to make it the top window, without physically
clicking on it.
I could reverse the order of opening the files making Main.docx's window on
top. But I have other times when I can't control what window is on top by
the order in which the files were opened.
I would appreciate any help in showing me how to bring a window in the
background to the top of the pile.
Thanks,
I want to cut and paste from one active document to another and keep the
first document window on top.
Code I'm working with:
Dialogs(wdDialogFileOpen).Show
' user selects the Main.docx file
' Main.docx is activated by default
' select and copy stuff from Main.docx
' open Target.docx via
Documents.Open FileName:="""Target.docx""" 'etcetera
' Target.docx is now active and it's window is on top
' paste stuff
Now I want to make Main.docx activated and it's window on top.
I can activate it easily enough by Windows("Main.docx").Activate
But I can't figure out how to make it the top window, without physically
clicking on it.
I could reverse the order of opening the files making Main.docx's window on
top. But I have other times when I can't control what window is on top by
the order in which the files were opened.
I would appreciate any help in showing me how to bring a window in the
background to the top of the pile.
Thanks,