VBA & Macro Problems

Fix User-Defined Type Not Defined Error for Oracle WebADI in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 3, 2026 869 views

Question details

The user needs to resolve an Excel compile error that occurs while attempting to download data using Oracle WebADI.

How to Fix User-Defined Type Not Defined Error in Excel 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.
Before you start

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.

Solution 1Recommended

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.

1
Extract the Add-in File

Extract the WebADI-Addins-MSXML6.xla file to your default Microsoft AddIns folder (usually located at %appdata%\Microsoft\AddIns).

2
Open Excel Add-in Options

Launch Excel, click on the 'File' tab, select 'Options' at the bottom left, and then click on 'Add-ins' in the left-hand menu.

3
Access Add-ins Manager

At the bottom of the window, ensure 'Excel Add-ins' is selected in the 'Manage' dropdown menu, and click the 'Go...' button.

4
Browse and Enable

Click 'Browse...', locate the extracted WebADI-Addins-MSXML6.xla file, ensure its checkbox is ticked in the Add-ins available list, and click 'OK'.

5
Restart and Test

Close Microsoft Excel completely, reopen it, and attempt to download the Oracle WebADI data again.

Install and Enable the WebADI MSXML6 Add-in
Add-in Configured Successfully: Once the add-in is enabled, the VBA compiler will correctly recognize the required data types, allowing WebADI downloads to complete without error.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your computer.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx or .xlsm files to continue your work without format loss.
Highly compatible with Microsoft Excel formats, including .xlsx, .xlsm, and .csv.Lightweight design ensures extremely fast loading times and smooth performance.Built-in advanced features available to handle complex data formulas without heavy add-ins.Familiar tabbed interface allows you to transition immediately without a steep learning curve.
microsoft office alternative - wps office

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.