# \#vba

**URL:** https://community.cdata.com/tag/vba/288.md

[Latest](https://community.cdata.com/latest.md) · [Categories](https://community.cdata.com/categories.md) · [Tags](https://community.cdata.com/tags.md)

---

## [Excel Add-In: “Compile error: User-defined type not defined” when running VBA script.](https://community.cdata.com/t/excel-add-in-compile-error-user-defined-type-not-defined-when-running-vba-script/437)

<div class="topic-metadata">

**Author:** [@Skerdian\_Shehaj](https://community.cdata.com/u/Skerdian_Shehaj)\
**Replies:** 0\
**Last updated:** [October 5, 2023, 9:00pm UTC](https://community.cdata.com/t/excel-add-in-compile-error-user-defined-type-not-defined-when-running-vba-script/437 "2023-10-05T21:00:15Z")

</div>

If you are encountering this issue, it is most likely because you have not added the CData Excel Add-In as a reference in your Visual Basic module/script. To add the CData Excel Add-In as a reference, please follow …
