Is there a way to refer to a file that changes names each day. I have a PC based cash register that I import files from every day. One day the file is named "CRDAY_25.001" and the next day it is named "CRDAY_26.001". The name before the underscore is always the same and the .001 extenstion is always the same. The number in the middle goes up by one each day. Can I rename the file using a "like" function to refer to the "changing file"?
E.g. Private Sub Command1_Click()
Name "C:\~Master Files\SSM\001\Crday_*.001" As "C:\~Master Files\SSM\001\Credit.txt"
End Sub
(With the * being the wild card)
Thanks, Rick
E.g. Private Sub Command1_Click()
Name "C:\~Master Files\SSM\001\Crday_*.001" As "C:\~Master Files\SSM\001\Credit.txt"
End Sub
(With the * being the wild card)
Thanks, Rick