# How to use late binding in Excel and Access

When protecting an Excel application, in order to use early binding to the QLM License object, you need to add a reference to QlmLicenseLib.tlb. Excel references are typically path specific, so when you deploy your Excel application to your customer, the path may be different.

\
There are two ways to address this behavior: (a) Use late binding or (b) add a reference dynamically.

This article discusses how to use late binding. Another article will discuss how to dynamically add a reference to your Excel application.

To use late binding, update your code as follows:

* Replace any reference to IQlmLicense, QlmLicense, ILicenseInfo, by the keyword Object.
* Add the Enums in the attached document to the LicenseValidator class. If you are using the latest version of QLM, the LicenseValidator class may already have these enums.
* Remove the reference to QlmLicenseLib.tlb.

Our recommendation is to use early binding during development because you get the benefit of intellisense and switch to late binding when you have completed development.

{% file src="/files/sOKdjmHz9bwZu9NgdzmV" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/faq/how-to-use-late-binding-in-excel-and-access.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
