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.
Option Explicit
Sub ShowFilenames()
Dim strName As String
strName = Dir("[blue]C:\TEMP\[/blue]")
Do While strName <> ""
MsgBox strName
strName = Dir
Loop
End Sub
Option Explicit
Sub ShowFileNames()
Dim strName As String
Dim intR As Integer
intR = 2
Cells(1, 1).Value = "File Names"
strName = Dir("C:\TEMP\")
Do While strName <> ""
Cells(intR, 1).Value = strName
strName = Dir
intR = intR + 1
Loop
End Sub
Do While strName <> ""[blue]
strName = Split(strName, ".")(0)[/blue] [green]' Add this line to your code [/green]
Cells(intR, 1).Value = strName
strName = Dir
intR = intR + 1
Loop