indi visual
Member
Is there code that exists that could determine if the creation of a text file? I searched online but couldn't find anything so far.
I am importing a large text file. I have a reset button which basically clears the whole sheet and reimports this text file. To make things faster, I was hoping to incorporate some type of code that only imports this text file if it's new.
I was thinking something along the lines of...
Check ThisWorkbook.Path & "File Data 2 Import.txt"
If file creation date is not older than say like a minute
Then
Skip Import
Then that way it would save time and only import the file if it was definitely new. If anyone has a cleaner way to do this I will definitely take notes.
I am importing a large text file. I have a reset button which basically clears the whole sheet and reimports this text file. To make things faster, I was hoping to incorporate some type of code that only imports this text file if it's new.
I was thinking something along the lines of...
Check ThisWorkbook.Path & "File Data 2 Import.txt"
If file creation date is not older than say like a minute
Then
Skip Import
Then that way it would save time and only import the file if it was definitely new. If anyone has a cleaner way to do this I will definitely take notes.