Bring to Front?

R

Robin Tucker

How can I bring a word document to the front of the display? At present, my
documents are all in the background (invisible). When I've finished with
automation, I want to bring one to the front (on top). Any ideas?

Thanks.
 
M

Martin Seelhofer

Hi Robin
How can I bring a word document to the front of the display? At present,
my documents are all in the background (invisible). When I've finished
with automation, I want to bring one to the front (on top). Any ideas?

When using automation, the Office applications are started invisibly
themselves. Therefore, you'll have to let the application appear:

Application.Visible = true
or through Automation (assuming your object variable is called wdObj):
wdObj.Visible = true

Then activate/select your document (assuming you have a reference to
the doc called docObj):

docObj.Activate
or
docObj.Select


Cheers,
Martin
 
J

Jonathan West

Robin Tucker said:
How can I bring a word document to the front of the display? At present,
my documents are all in the background (invisible). When I've finished
with automation, I want to bring one to the front (on top). Any ideas?

Thanks.


The following article describes how you can do this, and also describes some
problems & issues with the technique.

Word 2000 documents opened or created with the Visible:=False parameter
can't be made visible again, and/or don't trigger a Close Event
http://word.mvps.org/FAQs/AppErrors/DocVisibleBugContent.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top