Article View: comp.lang.basic.visual.3rdparty
Article #18Re: How can i open a word file in VB ?
From: George Lissauer
Date: Tue, 14 Dec 1999 00:00
Date: Tue, 14 Dec 1999 00:00
31 lines
1799 bytes
1799 bytes
Here's how to open a word document with VB:
' Set VB Project References to the MS Word Object Library
Dim myDoc As Document
Dim wd As Word.Application
Set wd = CreateObject("Word.Application")
wd.Visible = True
wd.Documents.Open FileName:="C:\MyWord.Doc"
Set myDoc = wd.ActiveDocument
...
George
GridLinx Software Programming Tools for VB Programmers
http://www.gridlinx.com
CBA wrote:
>
> Hi
>
> Need urgent help
>
> How can i using visual Basic open an word file if i know the path
> just the same als double clicking it in Windows?
>
> CBA
--
Remove NOSPAM from address before replying.
Technical Details
Message-ID:
<38572114.6B82@lafn.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<5hz54.3365$68.28022@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1053fc,6fae4cc6408f9a0 X-Google-Attributes: gid1053fc,public X-Google-Thread: 108062,6fae4cc6408f9a0 X-Google-Attributes: gid108062,public X-Google-Thread: 1143a7,6fae4cc6408f9a0 X-Google-Attributes: gid1143a7,public X-Google-Thread: 110e3b,6fae4cc6408f9a0 X-Google-Attributes: gid110e3b,public X-Google-Thread: f5f6f,6fae4cc6408f9a0 X-Google-Attributes: gidf5f6f,public From: George Lissauer <be557@lafn.org> Subject: Re: How can i open a word file in VB ? Date: 1999/12/14 Message-ID: <38572114.6B82@lafn.org> X-Deja-AN: 560846951 Content-Transfer-Encoding: 7bit References: <5hz54.3365$68.28022@afrodite.telenet-ops.be> To: CBA <xxx.xxx@xxx.xx> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@lafn.org X-Trace: zook.lafn.org 945234504 13039 192.168.20.32 (15 Dec 1999 05:08:24 GMT) Organization: GridLinx Mime-Version: 1.0 Reply-To: be557@.lafn.org NNTP-Posting-Date: 15 Dec 1999 05:08:24 GMT Newsgroups: comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,es.comp.lenguajes.visual-basic