Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Word Document

Status
Not open for further replies.

svm

Programmer
Apr 26, 2001
44
US
I have a program that needs to browse the drive and directory and also select a Word Document Filename but I don't know how to insert a command in order to retrieve Word Document. Can anyone finish my coding ? Appreciate to any help you can give me. Thanks. Private Sub Command1_Click()

Program goes like this :

Dim i As Integer

Text2.Text = ""

For i = 0 To File1.ListCount - 1
If File1.Selected(i) Then
Text2.Text = Text2.Text & File1.List(i) & vbCrLf
End If
Next i

End Sub

Private Sub Dir1_Change()
Dir1.Path = "g:\maps"
File1.Path = Dir1.Path
File1.Refresh

End Sub

Private Sub Drive1_Change()

Dir1.Path = Drive1.Drive
Dir1.Refresh

End Sub




Private Sub Text1_Change()

File1.Pattern = Text1.Text

End Sub









 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top