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
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