Problem to Office

HuaMin Chen
HuaMin Chen used Ask the Experts™
How to correct
Error      3      The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

while I have Excel 2007 on my Desktop?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello, try these steps:
  1. In Solution Explorer, right-click your project's name and then click Add Reference. The Add Reference dialog box appears.
  2. On the Assemblies page, select Microsoft.Office.Interop.Excel in the Component Name list
  3. If you do not see the assemblies, you may need to ensure they are installed and displayed Click OK.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial