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

Hi,

I need to know weather its possible to dispaly the contents of a word
document within a userform, if this is not possible whats is the code
for opening up a word doc within excel itself.

many thanks

Johny5

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default open up a word document in excel

Private Sub OpenWordDocumentButton_Click()
Dim wdApp As Word.Application

strFilename = "Full pathname here"

Set wdApp = CreateObject("Word.Application")

With wdApp
.Documents.Open Filename:=ThisWorkbook.Path & "\" & strFilename
.Visible = True
End With

Set wdApp = Nothing
End Sub


------------------

Maybe this will help

Nick Shinkins


" wrote:

Hi,

I need to know weather its possible to dispaly the contents of a word
document within a userform, if this is not possible whats is the code
for opening up a word doc within excel itself.

many thanks

Johny5


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 12:44 AM.

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

About Us

"It's about Microsoft Excel"