Focusing Word in Windows XP query

R

Richard Clarke

Hi

Could someone explain why none of the following work in Windows XP
from a VB5 executable please?

1)
mobjWordApp.Visible = True
mobjWordApp.WindowState = wdWindowStateMaximize
mobjWordApp.Activate

Where mobjWordApp is a Word.application object.

2) AppActivate mobjWordApp.Documents(1).Name

where the document name is correct.

3) AppActivate Document.Name

where document.name is correct.

All I get is an orange flashing Word taskbar item which I can click to
get the Word application to the foreground. The calling application
parent form is an MDI form which I have tried minimizing in code, and
the word window appears behind the MDI form until I click the Word
item in the taskbar.

Many thanks
 

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