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

  • Home
  • SEARCH
  • 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 9082203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:30:12+00:00 2026-06-16T20:30:12+00:00

I want to use excel function in Visual Basic 2010 Express. I tried to

  • 0

I want to use excel function in Visual Basic 2010 Express. I tried to search in the internet to see how to do that.

I come across with this solution:

Module Module1

    Sub Main()
        Imports Excel = Microsoft.Office.Interop.Excel

        Dim oXLApp As New Excel.Application
        Dim ExcelMath As Excel.WorksheetFunction
        ExcelMath = New Excel.WorksheetFunction

        Dim I As Double
        Dim s As Double

        I = ExcelMath.Average(1, 2, 3, 4, 5)
        s = ExcelMath.StDev(1, 2, 3, 4, 5)
        ExcelMath = Nothing
        oXLApp.Quit()
        oXLApp = Nothing

    End Sub

End Module

However, there is error of:
1. Syntax error.
2. Type ‘Excel.Applciation” is not defined.
3. Type ‘Excel.WorksheetFunction’ is not defined.

How should it be resolved?

Or is there other simple way to do that?

Thanks a lot!

  • 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-06-16T20:30:14+00:00Added an answer on June 16, 2026 at 8:30 pm

    My guess is that you need to add a reference to the Microsoft Excel Object Library. For a brief tutorial, see http://support.microsoft.com/kb/301982 (more specifically, step #3).

    If this doesn’t resolve the problem, let us know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel workbook that I want to use as a template. It
I use VS 2010 for creating Excel 2007 xltx template. I want to remove
Question: I want to use a VBA function in Access that is declared as
I want to use Excel PMT function in Javascript. The parameter would be Pmt(
I want to use Microsoft.Office.Interop.Excel dll to write the data into excel sheet. I
I want to use Access database with query for pivot table in Excel. How
use C#,want to upload excel file on google doc. bellow syntax use to upload
I want use javascript setInterval function to achieve a box rotate animate effect, I
I am trying to use Excel the DateAdd function to find the next working
I'm trying to create an export Excel/CSV function that will iterate through a custom

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.