Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open a word document in excel

I have Vb running collecting some data in Excel and would
like for it to open a word document after it finish's. Is
there a way to open a word document from within Excel's
Vb.
Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open a word document in excel

Try this Michael

Set a reference to the Word ? object library

Sub test()
Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
WordApp.documents.Open "c:\Data\ron.doc"
WordApp.Visible = True
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michael" wrote in message ...
I have Vb running collecting some data in Excel and would
like for it to open a word document after it finish's. Is
there a way to open a word document from within Excel's
Vb.
Michael



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel trying to open word document tina Excel Discussion (Misc queries) 2 April 19th 07 02:16 PM
open word document in excel spaceslime Excel Discussion (Misc queries) 1 August 13th 05 03:15 PM
what happens if I open an excel document in word? Emily Excel Discussion (Misc queries) 3 April 2nd 05 10:49 AM
open a new word document out of excel walt Excel Programming 0 August 11th 03 09:22 PM
open a word document in excel Herb[_4_] Excel Programming 1 August 9th 03 01:36 AM


All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"