If no files in Dir / MsgBox

Hi,

How do you check if a directory contains any files?
I would like to check for App.path & "\Templates\"
and
if their isn't any files then
popup a msgbox
else
exit sub
end if

LVL 4
idcanadaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
watyConnect With a Mentor Commented:
if dir(App.path & "\Templates\") = "" then
   msgbox "No Files found"
end if
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.