DoCmd.TransferSpreadsheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a (preferably) simple way to get access to prompt if the file
already exists, rather than it just simply over writing the existing file??

Thanks
 
Try the File Search command:

With Application.FileSearch
.NewSearch
.LookIn = "C:\My Documents"
.SearchSubFolders = True
.FileName = "Run"
.MatchTextExactly = True
.FileType = msoFileTypeAllFiles
End With
 
Thanks Kevin but Klatuu's was simpler :-)

Kevin said:
Try the File Search command:

With Application.FileSearch
.NewSearch
.LookIn = "C:\My Documents"
.SearchSubFolders = True
.FileName = "Run"
.MatchTextExactly = True
.FileType = msoFileTypeAllFiles
End With
 
Back
Top