How to Fix Excel Solver Cannot Find F3Dynamic or refObj Error
Question details
The user is encountering a VBA compilation error in Excel Solver where the system cannot find F3Dynamic, refObj, or refRHS library references.

- Product
- Microsoft Excel
- Device & OS
- Windows 64-bit
- Scenario
- Running or compiling Excel Solver macros on a different 64-bit computer.
- Observed behavior
- Solver fails to compile, and the Object Browser exposes missing references to F3Dynamic or refObj. The issue persists even after reinstalling Microsoft Office.
Ensure you have administrative privileges on your computer, as resolving this issue requires uninstalling programs, managing system DLL files, and modifying software registry configurations.
Perform a Clean Uninstall and Remove Old Office DLLs
Completely removing corrupted Office installations and lingering DLL files resolves the root cause of the missing refObj and F3Dynamic errors.
A healthy Solver installation should be password-protected and never expose an unresolved F3Dynamic reference. This error typically occurs when there are multiple or damaged Office installations conflicting with REFEDIT.DLL on your system.
Open the Windows Control Panel, go to 'Programs and Features', select your Microsoft Office installation, and click 'Uninstall'. Alternatively, use the official Microsoft Support Uninstall Tool to ensure a complete removal.
Navigate to your system folders (such as C:\Windows\System32 and C:\Windows\SysWOW64) and Program Files directories. Search for and manually delete lingering Office folders and old DLL files, particularly looking for any instances of REFEDIT.DLL.
Open Command Prompt as an administrator, type 'sfc /scannow', and press Enter. Wait for the scan to complete and repair any corrupted Windows system files.
Restart your computer and install a single, clean 64-bit version of Microsoft Office to prevent cross-version compatibility issues.

Remove Broken or Obsolete VBA References
Unchecking obsolete controls, such as outdated calendar modules, can fix compilation errors on 64-bit systems.
Try WPS Office for a Hassle-Free Spreadsheet Experience
If you are tired of dealing with complex VBA compilation errors, broken DLL references, and corrupted Office installations, switch to WPS Office. It provides a lightweight, highly compatible alternative for handling spreadsheets and data analysis without the heavy system conflicts.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Install the Software: Run the setup file and follow the quick installation process.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheet and seamlessly open your existing Excel files to continue your work without errors.

Frequently Asked Questions
What is F3Dynamic in Excel Solver?
F3Dynamic is an internal library reference associated with the Excel Solver add-in. In a normal, healthy installation, the Solver VBA project is password-protected and this reference remains hidden. It only appears when the installation is corrupted or encountering conflicts.
Why does my macro work on one computer but fail on another?
This commonly happens due to differences in system architecture (such as moving from a 32-bit to a 64-bit environment). The new machine may lack legacy library references, like REFEDIT.DLL or the Microsoft Access Calendar Control, causing the macro to fail.
How do I fix missing REFEDIT.DLL errors?
You can resolve REFEDIT.DLL errors by completely uninstalling your current version of Microsoft Office, manually deleting any remaining REFEDIT.DLL files from your system folders, and reinstalling a clean version of Office.




