Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies. Only from Platform Scholar.
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.