Exists?
Hi Tom,
for path:
If Dir(path)<"" Then a=True
For sheet:
On Error Resume Next
Set s=Activeworkbook.Sheets(sheetname)
On Error GoTo 0
If Not s Is Nothing Then a=True
Regards,
KL
"Tom" wrote in message
...
How can I in Excel VBA check if folder exists?
Something like:
path=C:\temp
If path exists then a=true
and same things for sheet
sheetname=test1
if sheetname exists then a=true
thanks tom
|