isladogs
Access MVP / VIP
- Local time
- Today, 11:42
- Joined
- Jan 14, 2017
- Messages
- 19,329
@IsaacSub foo() Dim fso As Object, fsofile As Object, strShortName As String Dim fsofolder As Object Set fso = CreateObject("scripting.filesystemobject") Set fsofolder = fso.getfolder("C:\Users\Isaac \Desktop\Bills") For Each fsofile In fsofolder.Files MsgBox fsofile.shortpath Next fsofile End Sub
Thanks for that code. I'd forgotten about ShortPath being available from FSO