---
title: "Microsoft.Office.Interop.Excel.ApplicationClass has no constructor defined"  
description: "Microsoft.Office.Interop.Excel.ApplicationClass has no constructor defined"  
author: "Anonymous User"  
published: 2013-11-14  
updated: 2013-11-14  
canonical: https://www.mindstick.com/forum/1741/microsoft-office-interop-excel-applicationclass-has-no-constructor-defined  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Microsoft.Office.Interop.Excel.ApplicationClass has no constructor defined

I tried to follow How to open an [Excel](https://www.mindstick.com/articles/12937/how-to-import-excel-data-in-sql-server-2014) [file in C#](https://www.mindstick.com/forum/159903/how-to-create-a-log-file-in-c-sharp) tutorial, i.e. added a [reference](https://www.mindstick.com/forum/774/reference-what-does-this-error-mean-in-php) on the Com tab to [Microsoft](https://www.mindstick.com/articles/12301/microsoft-is-trying-to-kill-passwords) [Office](https://www.mindstick.com/articles/13103/how-do-computer-desks-assist-in-the-office-work) 14.0 Object [Library](https://www.mindstick.com/forum/34615/software-framework-vs-library) and tried to [compile](https://www.mindstick.com/forum/2316/how-to-views-compile-in-mvc) code:

```
using Excel = Microsoft.Office.Interop.Excel;//...Excel.Application xlApp;Excel.Workbook xlWorkBook;Excel.Worksheet xlWorkSheet;xlApp = new Excel.ApplicationClass();//error here//...
```

and [faced](https://www.mindstick.com/forum/23284/c-sharp-problem-faced) a compile-time [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing), saying

There is no constructor defined for Microsoft.Office.Interop.Excel.ApplicationClass type.

What am I [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on)?

## Replies

### Reply by Anonymous User

Hi Jeet,

Use the following to open it:

```
xlApp = CreateObject("Excel.Application");CreateObject creates and returns a reference to
a COM object
```


---

Original Source: https://www.mindstick.com/forum/1741/microsoft-office-interop-excel-applicationclass-has-no-constructor-defined

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
