Excel 求教一下关于VBA function的用法

如题所述

给个小例子
Public Function FileFolderExists(strFullPath As String) As Boolean
On Error GoTo EarlyExit
If Not Dir(strFullPath, vbDirectory) = vbNullString Then FileFolderExists = True
EarlyExit:
On Error GoTo 0
End Function
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答