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 567753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:07:01+00:00 2026-05-13T13:07:01+00:00

I want to get a value from 12 excel sheet. is there any way

  • 0

I want to get a value from 12 excel sheet. is there any way that i get the values without opening the excel sheet?
I am using vb.net. Please post an example code, if there is a way to read values without opening the excel file.
thanks

  • 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-13T13:07:01+00:00Added an answer on May 13, 2026 at 1:07 pm

    You can’t read the values without opening the Excel file at all. But you may read the values without having to open Excel.

    If the file is saved in the xml format it’s going to be easier. If not, the easiest method is to still use Excel but use Office Automation to do it. The hard way is to create an excel file parser – quite hard on the non-open xml excel format (pre Office 2003) – hard but still possible.

    However, it is quite impossible to read from an excel spreadsheet without opening the file at all..

    Here’s a snippet of code you could use to open a spreadsheet from VB.NET, by leveraging Office Automation (it still opens the file, an relies on Excel automation dlls, but doesn’t require opening Excel):

    DISCLAIMER

    The following code is not intended to be used as is, but merely it is a sample to guide the reader to their own solution which should be thoroughly tested.

    ' The code below requires you to add references to Office Interop assemblies
    ' into your VB.NET project  (if you don't know how to do that search Google)
    
    xlApp = New Excel.ApplicationClass
    xlWorkBook = xlApp.Workbooks.Open("<YOUR EXCEL SPREADSHEET FILE HERE")
    xlWorkSheet = xlWorkBook.Worksheets("sheet1")
    
    range = xlWorkSheet.UsedRange
    
    For rCnt = 1 To range.Rows.Count
        For cCnt = 1 To range.Columns.Count
            Obj = CType(range.Cells(rCnt, cCnt), Excel.Range)
            ' Obj.value now contains the value in the cell.. 
        Next
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Access 2003 I want to get a table value from the two databases
I've a requirement that I need to read an excel sheet programmatically using asp.net/C#
I want to get values from other sheets. I have some values in Excel
I'm beginner in MVC3, and I want to get a value from an another
I want to get the CreateDate value from xml file the xml file is
Possible Duplicate: Return value from thread I want to get the free memory of
i bascially want to get the value of a variable from the codebehind to
I want to get the text value of a textbox from javascript. The textbox
I want to get three highes values from my array, but it should be
I want to get random keys and their respective values from a Map. The

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.