Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.
Sub CheckTargetFile() Targetfile1 = "SR_" & cnty & ".txt" Dirname1 = "H:\srprod\Data Requests\" & typestudy & "Files\" & year 'To make sure that file exists With Application.FileSearch .NewSearch .LookIn = Dirname1 .Filename = Targetfile1 If .Execute() = 0 Then MsgBox "File not found. Not Created Yet", vbOKOnly Else Call Import End If End With
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.