View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Nick Shinkins[_2_] Nick Shinkins[_2_] is offline
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