Solution
As stated in the error message, this is an ActiveX error and there are multiple potential root causes.
Some of these root causes have been related to a combination of filenames, folders availability and permissions, so the following troubleshooting steps are suggested:
- Make sure the specified folder exists.
- Make sure the folder that contains the file is not read-only
- If you are also writing to the file, make sure that the file is not read-only or that its access is not restricted to a group or user in Windows that you are not part of.
- Make sure the file name does not contain any of the following characters: < > ? [ ] : or *
- Make sure that the file/path name does not contain more than 218 characters.
- In LabVIEW, go to Help > Find Examples > search for "ActiveX". Try running some of the LabVIEW examples that show, all of these interact with Microsoft Excel through ActiveX calls. See if the error persists.
In case you are getting this error when running an executable, you are using LabVIEW as an ActiveX server, and have an ActiveX client that interfaces with your program from LabVIEW, you'll need to make sure that the executable was enabled to act as an ActiveX server. To solve this :
- Open your LabVIEW project
- Open the build specifications for your executable
- Go to the Advanced tab on the Category section
- Click on Enable ActiveX Server checkbox
- If you'd like, give the server name the same name of your application
- Rebuild the executable.