Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lauching Word from VB exe.
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00454374
Message ID:
00454483
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform