Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Form_Load()
Dim sPath As String
Dim sFile As String
sPath = "C:\Zameer\"
sFile = Dir(sPath, vbDirectory)
Me.FilesListBox.RowSourceType = "Value List"
Do While sFile <> ""
If Right(sFile, 4) = ".doc" Then
Me.FilesListBox.AddItem Item:=sFile
End If
sFile = Dir
Loop
End Sub
'..................
If Right(sFile, 4) = ".doc" Then
Me.FilesListBox.AddItem Item:=[b]Left(sFile, Len(sFile) - 4)[/b]
End If
'....................