dancingcab
New Member
- Joined
- Nov 10, 2014
- Messages
- 14
Hi,
My instrument spits out two text files of raw data. The analysis I need to perform is depended on which of the two files I'm looking at. The text files have the same filename however the 2nd file has (1) at the end. I can loop through half the files using
sFile = Dir(sPath & Application.PathSeparator & "*(1).txt")
But how do I loop through all the other files? Any ideas? The filename could be anything entered by the user so I don't have any more information about it other than it doesn't end in (1).
Any help would be much appreciated.
Thanks!
My instrument spits out two text files of raw data. The analysis I need to perform is depended on which of the two files I'm looking at. The text files have the same filename however the 2nd file has (1) at the end. I can loop through half the files using
sFile = Dir(sPath & Application.PathSeparator & "*(1).txt")
But how do I loop through all the other files? Any ideas? The filename could be anything entered by the user so I don't have any more information about it other than it doesn't end in (1).
Any help would be much appreciated.
Thanks!