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
|