Active7 months ago

I had developed a system that deals with excel sheets in 2006 using MS VS 2005. Now, I can not use the same reference with MS VS 2012.

Office 365 is a cloud-based subscription service that brings together the best tools for the way people work today. By combining best-in-class apps like Excel and Outlook with powerful cloud services like OneDrive and Microsoft Teams, Office 365 lets anyone create and share anywhere on any device. To have us resolve the issue by setting the correct values for these dlls in the registry, go to the 'Fix it for me' section.If you prefer to fix this problem yourself, go to the 'Let me fix it myself' section.

abatishchev
72.5k70 gold badges270 silver badges406 bronze badges

Microsoft Office Dll Files

Moe_AlMoe_Al

6 Answers

Use NuGet (VS 2013+):

The easiest way in any recent version of Visual Studio is to just use the NuGet package manager. (Even VS2013, with the NuGet Package Manager for Visual Studio 2013 extension.)

Right-click on 'References' and choose 'Manage NuGet Packages..', then just search for Excel.

VS 2012:

Older versions of VS didn't have access to NuGet.

  • Right-click on 'References' and select 'Add Reference'.
  • Select 'Extensions' on the left.
  • Look for Microsoft.Office.Interop.Excel.
    (Note that you can just type 'excel' into the search box in the upper-right corner.)

VS 2008 / 2010:

  • Right-click on 'References' and select 'Add Reference'.
  • Select the '.NET' tab.
  • Look for Microsoft.Office.Interop.Excel.
Grant WinneyGrant Winney
56.9k8 gold badges84 silver badges136 bronze badges

You can also try installing it in Visual Studio via Package Manager.

Run Install-Package Microsoft.Office.Interop.Excel in the Package Console.This will automatically add it as a project reference.

Microsoft.office.documentmanagement.dll

Use is like this:

MJH
2,1256 gold badges14 silver badges20 bronze badges
CYCLONECYCLONE

If you have VS 2013 Express and you cant find Microsoft.Office namespace, try this ('Microsoft Excel 12.0 Object Library' if you want to use Office 2007)

MuflixMuflix
1,8296 gold badges36 silver badges83 bronze badges

Building off of Mulfix's answer, if you have Visual Studio Community 2015, try Add Reference.. -> COM -> Type Libraries -> 'Microsoft Excel 15.0 Object Library'.

Daniel.VenezianoDaniel.Veneziano

Instead of early binding the reference, there's an open source project called NetOffice that abstracts this from your project, making life much easier. That way you don't have to rely on your users having a specific version of Office installed.

LawManLawMan

You have to check which version of Excel you are targeting?

If you are targeting Excel 2010 use version 14 (as per Grant's screenshot answer), Excel 2007 use version 12 . You can not support Excel 2003 using vS2012 as they do not have the correct Interop dll installed.

mas_oz2k1mas_oz2k1
2,3722 gold badges29 silver badges38 bronze badges

Microsoft Office Dll Files

Not the answer you're looking for? Browse other questions tagged c#excelreferencevisual-studio-2012vsto or ask your own question.

If you start a Microsoft Office 2016 program and are presented with the error 'The application can't start because AppVIsvSubsystems32.dll is missing from your computer' there are a couple of easy things you can do to try and fix that issue.

Online repair

The first thing to try is a repair of Office. It usually just takes a few minutes. The exact steps will vary slightly depending upon your operating system but the basic process is as follows:

  1. Go to Control Panel in Microsoft Windows.

  2. Choose Uninstall a program.

  3. Find Microsoft Office on your program list and click on it.

  4. Choose Change from the toolbar at the top of the program list. Aashiqui 2 movie songs download mp3.

  5. In the dialog box that appears choose Quick Repair and then click the Repair button.

When Quick Repair completes, try and launch the Office program that was giving you the error. If you're still getting the error, repeat the steps above but choose Online Repair this time.

Note: For the Online Repair you will need to have an active Internet connection.

For more information about this process see: Repair an Office application

Microsoft Office 2007 Dll File

If even the Online Repair doesn't resolve the issue, we need to try uninstalling and reinstalling Microsoft Office.

Uninstall and reinstall Office

  1. Click the button below to download and install the Office uninstall support tool.

  2. Follow the steps below to download the uninstall support tool according to your browser.

    Tip: The tool may take a few minutes to download and install. After completing the installation, the Uninstall Office products window will open.

    Edge or Internet Explorer

    At the bottom of the browser window, select Run to launch the SetupProd_OffScrub.exe.

    Chrome

    In the lower-lower left corner right-click SetupProd_OffScrub.exe > Open.

    Firefox

    In the pop-up window, select Save File.

    Next, from the upper-right of the FireFox browser window, select the downloads arrow and then select SetupProd_OffScrub.exe.

  3. Select the version you want to uninstall, and then select Next.

  4. Follow through the remaining screens and when prompted, restart your computer.

    After you restart your computer, the uninstall tool automatically re-opens to complete the final step of the uninstall process. Follow the remaining prompts.

  5. Select the steps for the version of Office you want to install or reinstall. Close the uninstall tool.

    Office 365 Office 2019 Office 2016 Office 2013 Office 2010 Office 2007

See also

Still have questions or feedback about Microsoft Office?

Microsoft.office.interop Dll Download

Please see How do I give feedback on Microsoft Office?