Open word document

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

From a form I want to open a specific word document. I can
open word but I do not know how the specify the document I
want to open. Document is called Desk top procedure. This
is what I have:

Private Sub Desk_Top_Procedure_Click()
On Error GoTo Err_Desk_Top_Procedure_Click

Dim oApp As Object

Set oApp = CreateObject("Word.Application")
oApp.Visible = True

Exit_Desk_Top_Procedure_Click:
Exit Sub

Err_Desk_Top_Procedure_Click:
MsgBox Err.Description
Resume Exit_Desk_Top_Procedure_Click

End Sub

Thanks,

Dennis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top