Thread View: comp.lang.basic.visual.3rdparty
2 messages
2 total messages
Started by CBA
Tue, 14 Dec 1999 00:00
How can i open a word file in VB ?
Author: CBA
Date: Tue, 14 Dec 1999 00:00
Date: Tue, 14 Dec 1999 00:00
12 lines
1255 bytes
1255 bytes
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
Re: How can i open a word file in VB ?
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads