following codes but i get an error message that says "fol.Files(i).name <Invalid procedure call or argument>"
the "name" "n" should be in capital case but when change to capital it automatically changes to small... any idea ?
Private Sub Form_Load()
Dim fso As New FileSystemObject
Dim fol As Folder
Dim i As Integer
Dim name1 As String
Set fol = fso.GetFolder("C:\")
For i = 0 To fol.Files.Count
name1 = fol.Files(i).name
Label1.Caption = name1
Next i
End Sub
thanks advance...

New Topic/Question
Reply



MultiQuote





|