Make active Word Application

F

Franklin Ortiz

I have a routine that select some fields from my database, then make a
mailmarge. When Word 2003 Application is closed this routine work fine, load
the data, open word and make the mailmerge, show me the document template
that i create for this

But when Word or Outlook is open,(outlook use word like your message
editor), and I run the routine,the document not is open and the mailmerge
don't work.

I use the follow sentences in my routine

If NOT SalActiveXGetActiveObject( oApplication, 'Word.Application' )
Set bOk = bOk AND oApplication.Create( ) This work Fine
Else
Set bOk = bOk AND oApplication.Activate() This Don't work

The function "Active" is the rigth to active one application open yet ?, or
i'm in a mistake.

thanks in Advance
 

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