Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lauching Word from VB exe.
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00454374
Message ID:
00454483
Vues:
26
>Thank you for your input.
>I'm now getting a "Cannot launch application" message when I attempt to run. It occurs on the 'Then objWord.Activate'.
>
>Private Sub Merge_Click()
>Dim doc As Document
> If WordTemplates.Text <> "" Then objWord.Activate
> objWord.Documents.Add "C:\client\friendsprovident\" & WordTemplates.Text
> Set doc = objWord.ActiveDocument
>
> doc.Activate
>
> Set objWord = Nothing
> Set doc = Nothing
>
>End Sub


What is «objWord»? How is it declared? Is it like Guy told you?

Also there should be no need of activating Word. You should REM this line.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform