Why does this code return #Value! ?
Using it like this:
=sdir(cell with path string<CELL path with reference>,"vbDirectory")
Using it like this:
=sdir(cell with path string<CELL path with reference>,"vbDirectory")
Code:
Function sDir(path As String, param As String) As Boolean
Application.Volatile
If Dir(path, param) <> "" Then
sDir = True
Else
sDir = False
End If
End Function