Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / May 2004

Tip: Looking for answers? Try searching our database.

Open Word from an Outlook form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
k0mp - 19 May 2004 12:42 GMT
Hello,
There is something I don't understand, when I create a WSH script with
the two lines below :

Set objwrd = WScript.Createobject ("Word.Application")
objWrd.Visible = true

and that I execute it, Word is opened.

But if I try to do the same thing in Outlook2002, in a form with a
button  using the code below :

Sub cmdGo_Click()
    MsgBox "Button clicked"
    Set objwrd = WScript.Createobject ("Word.Application")
    objWrd.Visible = true
End Sub

The message box is displaid but not the Microsoft Word.

So what must I do to open Word ?

(I use Outlook2000, Word2000 and WindowsNT2000)
Sue Mosher [MVP-Outlook] - 19 May 2004 13:27 GMT
USe:

   Set objwrd = Createobject ("Word.Application")

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hello,
> There is something I don't understand, when I create a WSH script with
[quoted text clipped - 19 lines]
>
> (I use Outlook2000, Word2000 and WindowsNT2000)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.