I found an earlier thread to open a Word document from a VB program. The following are the codes originally written by dsi. Thanks dsi for your codes. I included some codes to open the Word document from the common dialog open box.
'include the Microsoft Word Object Library in
' project references.
Dim strFile As String ' variable for the file name
clgOpen.ShowOpen ' common dialog box
strFile = clgOpen.FileName ' returned file name
'the rest are the codes written by dsi (programmer)
Dim wdApp As Word.Application
Set wdApp = New Word.Application
wdApp.Visible = True
wdApp.WindowState = wdWindowStateMaximize
wdApp.Documents.Open FileName:=strFile, ConfirmConversions:= _
False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto