Code: Select all
Sub ShowFiles
Dim NextFile As String
Dim AllFiles As String
AllFiles = ""
'here is where I would like to change it from this....
NextFile = Dir("C:\", 0)
'to this....
'NextFile = Dir("http://www.somewebsite.com/images/", 0)
While NextFile <> ""
AllFiles = AllFiles & Chr(13) & NextFile
NextFile = Dir
Wend
MsgBox AllFiles
End Sub