Fix Runtime Error 75 Path/File Access Error

On a Windows 95 computer the “Open For Binary” command fails in Visual Basic if you set the share control to share level access.

Additionally, the following error message is displayed on the screen:

Run-time error '75': Path/File access error.

Cause of the Error

This error message is generated only on a Windows 95 computer when a read-only shared resource has share-level access control.

Resolution Methods

You can resolve this issue by using one of the following methods:

  • Change the access permission on your shared resource from read-only to full control.
  • If your Windows 95 computer is in a Windows NT domain, you may use user level access to workaround the problem.
  • You may use Win32 API calls to access your read-only shared resource on Windows 95.

If you are using Microsoft Excel 2000 Standard Edition, then the following error message may be displayed on your Windows computer when a Microsoft Visual Basic for Applications macro attempts to use the Name statement:

Run-time error '75': Path/File access error

Note: You will not encounter this problem on a Windows 95 computer.

Cause of Error

This error occurs when the following happens:

  • You try to rename a directory using the Name statement, and
  • A file that exists in the directory you are trying to rename has been set equal to the variable with the help of the Dir function.

To better understand this, let’s use an example:

Suppose that you create a file with the name MyFile.xls and save it in D:\MyFolder. Next, you run a macro comprising the following two statements:

X = Dir("D:\ MyFolder\MyFile.xls")
Name "D:\MyFolder" As "D:\YourFolder"

When you do this, the “Run-time error '75': Path/File access error” is displayed.

Resolution Method

You can resolve this issue by working around the problem. To do this, you need to use a dummy variable to reset the pointer to another folder.

For instance, in the example discussed above, you may resolve the issue changing your macro statements in the following way:

X = Dir("D:\ MyFolder\MyFile.xls")
Y = Dir("D:\*.*")
Name "D:\ MyFolder" As "D:\YourFolder"

In this macro, the variable Y is used to reset the current directory. To do this, you may use any variable and reset it to any directory that exists on your hard disk -except the directory you are renaming.

A damaged registry and malware infections are also one of the major causes of runtime errors. To prevent registry problems, you must regularly scan and clean your registry to remove all unwanted data from it. You can do this easily with the help of a reliable registry cleaner tool, such as RegServe. To ensure that your computer is free from malware problems, you must regularly perform full system scans with the help of efficient antivirus and antispyware tools, such as STOPzilla Antivirus and Spyware Cease to detect and remove any malicious data. To ensure that you are protected against the latest security threats, you must keep your antimalware tools updated with the latest malware database.