Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:03:48+00:00 2026-05-29T08:03:48+00:00

I am attempting to create an Excel spreadsheet in C#. I am using VSE

  • 0

I am attempting to create an Excel spreadsheet in C#. I am using VSE 2010. I added a project reference to

Microsoft Excel 14.0 Object Library

and my using statements include
using Microsoft.Office.Interop.Excel;

however, this code gives an error “the type or namespace could not be found” for all the Excel. statements.

Is there anything else I need to be doing?

class excelsheet
{
    private static void CreateWorkbook(string FileName)
    {

        Excel.Application xl = null;
        Excel._Workbook wb = null;
        Excel._Worksheet sheet = null;
        //VBIDE.VBComponent module = null;
        bool SaveChanges = false;
   }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:03:49+00:00Added an answer on May 29, 2026 at 8:03 am

    I’m assuming you are doing this:

    using Microsoft.Office.Interop.Excel;
    

    Instead, try changing it to a using statement like:

    using Excel = Microsoft.Office.Interop.Excel;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create an Excel spreadsheet from within a VB6 application thus...
Using NPOI and attempting to follow a tutorial here: http://www.zachhunter.com/2010/05/npoi-excel-template/ , I'm coming across
I'm attempting to create my first real C# application - a small pet project
I am attempting what seems like a simple task: using C# to create a
I'm attempting to Create a Job and Add a Batch using the Salesforce Bulk
I'm attempting to create a linked list of length n using Python. I have
Using Excel Interop, I'm attempting to loop through all QueryTables in all Worksheets and
I am attempting to create a very basic login screen, using the Storyboard designer
I'm attempting to create a many-to-many relationship in Redis using Ohm. As an example,
I am attempting to export data to a excel spreadsheet and so open that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.