how to check is catalogue exists

  • Thread starter Thread starter artmajster
  • Start date Start date
A

artmajster

how do to check is catalogue exists
in Visual Script of course :) ??

thanks

p.s. I apologize for my English. I come from Poland :
 
If by catalogue you mean a directory (folder), use something like

If Dir("H:\Temp", vbDirectory) <> "" Then
Debug.Print "Exists"
Else
Debug.Print "Does not exist"
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
but how to check is concrete folder "Test" exists in folde
"C:/dyplom"
 
Hi
try
If Dir("C:\dyplom\Test", vbDirectory) <> "" Then
Debug.Print "Exists"
Else
Debug.Print "Does not exist"
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top