Fix User-Defined Type Not Defined Error for Oracle WebADI in Excel
Question details
The user needs to resolve an Excel compile error that occurs while attempting to download data using Oracle WebADI.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Downloading Oracle WebADI data into an Excel spreadsheet.
- Observed behavior
- Excel displays a 'User-defined type not defined' compile error because the WebADI add-in or its required XML component is either missing or disabled.
Ensure you have the WebADI-Addins-MSXML6.xla file provided by your IT department and confirm you have the necessary permissions to manage Excel add-ins on your computer.
Install and Enable the WebADI MSXML6 Add-in
Resolve the compile error by properly extracting and enabling the missing MSXML6 required component within Excel's Add-ins manager.
The 'User-defined type not defined' error in this context typically means Excel's VBA engine cannot find the expected XML references required by Oracle WebADI. Manually registering the MSXML6 add-in reinstates these missing references.
Extract the WebADI-Addins-MSXML6.xla file to your default Microsoft AddIns folder (usually located at %appdata%\Microsoft\AddIns).
Launch Excel, click on the 'File' tab, select 'Options' at the bottom left, and then click on 'Add-ins' in the left-hand menu.
At the bottom of the window, ensure 'Excel Add-ins' is selected in the 'Manage' dropdown menu, and click the 'Go...' button.
Click 'Browse...', locate the extracted WebADI-Addins-MSXML6.xla file, ensure its checkbox is ticked in the Add-ins available list, and click 'OK'.
Close Microsoft Excel completely, reopen it, and attempt to download the Oracle WebADI data again.

Share the Workbook for Advanced Troubleshooting
If enabling the add-in does not resolve the issue, prepare the workbook for safe sharing so support teams can inspect the underlying VBA code.
Try WPS Office as a Lightweight Alternative for Spreadsheet Management
If you are experiencing continuous macro or add-in compatibility issues with your current setup, consider using WPS Office. It provides a lightweight, highly compatible environment for handling advanced spreadsheet files seamlessly.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your computer.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx or .xlsm files to continue your work without format loss.

Frequently Asked Questions
What causes the 'User-defined type not defined' error in Excel VBA?
This compile error occurs when a VBA script refers to an external object, custom class, or add-in library that is not currently loaded or enabled in the system. For Oracle WebADI, it typically points to a missing MSXML component.
Where is the default Microsoft AddIns folder located?
On Windows, the default AddIns folder is usually located at C:\Users\[YourUsername]\AppData\Roaming\Microsoft\AddIns. You can quickly access it by pasting %appdata%\Microsoft\AddIns into the File Explorer address bar.
How do I show file extensions to rename an XLSM file?
Open Windows File Explorer, click on the 'View' tab at the top, and check the box next to 'File name extensions'. You can then right-click your file, select Rename, and change the .xlsm suffix to .zip.




