VBA & Macro Problems

Fix PHStat XLAM Temporary File and VBA Access Errors in Excel

Nimra MalikNimra Malik Nov 25, 2026 869 views

Question details

Resolve a VBA path or file access error when running a PHStat function in Excel.

Fix PHStat XLAM Temporary File and VBA Access Errors 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.
Before you start

Locate PHStat.xlam and note its folder path and the exact error message. Close Excel before checking the folder or changing add-in settings.

Solution 1Recommended

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.

1
Open the add-in folder

In File Explorer, navigate to the folder containing PHStat.xlam.

2
Check folder permissions

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.

3
Test file access

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.

4
Retest PHStat

Reopen Excel and run the PHStat function again. If the error persists, record the message and any temporary filename for Pearson support.

Check temporary file permissions in the PHStat folder
Permission changes: If the add-in is in a protected or managed folder, ask your administrator for help rather than disabling security protections.
Free Microsoft Office alternative

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.

Open and edit spreadsheets with a familiar interfaceWork with Microsoft Excel formats such as XLSXUse spreadsheet formulas and data tools for everyday analysisMove between common Office document formats more easily
microsoft office alternative - wps office

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.