When the following statements are executed in a protected Excel 2016 for Mac VBA environment, the Dir function works correctly if the file is found (i.e. the variable test contains the file name). However if the file is not found, the Dir function raises
a Run Time 53 (File Not Found) error rather than returning a zero length string which is the documented action:
fName = ActiveWorkbook.Path & Application.PathSeparator & "timYY.CSV"
test = dir(fName)
The function works correctly on PC.
Can this be fixed?
Dir Function
Office 2013 and later
Other Versions

Returns a String representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive.
Syntax
Dir[(pathname[, attributes])]
The Dir function syntax has these parts:
| Part |
Description |
| pathname |
Optional. String expression that specifies a file name — may include directory or folder, and drive. A zero-length string ("") is returned if<br>pathname is not found. |
| attributes |
Optional. Constant or numeric expression, whose sum specifies file attributes. If omitted, returns files that match<br>pathname but have no attributes. |