Fix PHStat XLAM Temporary File and VBA Access Errors in Excel
Question details
Resolve a VBA path or file access error when running a PHStat function in Excel.

- Product
- Microsoft Excel and Pearson PHStat add-in
- Device & OS
- Windows PC; version not provided
- Scenario
- PHStat.xlam loads in Excel, but a PHStat function needs to use a temporary file in the add-in's folder.
- Observed behavior
- The function produces a Visual Basic path or file access error involving a temporary file. The same add-in works on other computers.
Locate PHStat.xlam and note its folder path and the exact error message. Close Excel before checking the folder or changing add-in settings.
Check temporary file permissions in the PHStat folder
Use this approach when PHStat loads but cannot use or delete a temporary file beside the add-in.
In File Explorer, navigate to the folder containing PHStat.xlam.
Right-click the folder, select Properties, and open the Security tab. Check whether your Windows account has permission to create, modify, and delete files there.
In the same folder, try creating a new text file, editing it, and deleting it. If any action is blocked, ask your administrator to review the folder permissions.
Reopen Excel and run the PHStat function again. If the error persists, record the message and any temporary filename for Pearson support.

Contact Pearson about the PHStat add-in error
Use Pearson support if folder permissions appear correct or the issue continues after access is restored.
Consider a Windows reset only as a last resort
A Windows reset resolved the reported case, but it is disruptive and is not a confirmed general fix for PHStat errors.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format support for an easier transition. It does not fix Excel's PHStat add-in error; check PHStat compatibility before relying on the add-in in another application.

Frequently Asked Questions
Why does PHStat load but fail when I run a function?
Loading the add-in does not necessarily confirm that it can create, modify, or delete temporary files. Check the Security tab in the PHStat.xlam folder's Properties and test file access in that folder.
What does a zero-byte temporary file in the PHStat folder mean?
It may indicate that a temporary file was created but Excel or PHStat could not use or remove it. Check your account's folder permissions and share the filename and error message with Pearson if the issue continues.
Should I reset Windows to fix this error?
Try folder access checks and Pearson support first. A reset resolved the reported case, but it can remove files and applications and is not a guaranteed fix.
Can WPS Office fix the PHStat error in Excel?
No. The error involves the Pearson add-in running in Microsoft Excel. WPS Office is an alternative for spreadsheet work, but PHStat compatibility should be checked separately.




