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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:26:07+00:00 2026-06-16T21:26:07+00:00

In excel COM interop (C#), what is the difference between: _sheet = (Excel._Worksheet)_wb.Worksheets[SheetName]; and

  • 0

In excel COM interop (C#), what is the difference between:

_sheet = (Excel._Worksheet)_wb.Worksheets["SheetName"];

and

_sheet = (Excel._Worksheet)_wb.Sheets["SheetName"];

?

  • 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-16T21:26:09+00:00Added an answer on June 16, 2026 at 9:26 pm

    Sheets can contain other “Sheets” than Worksheets – Worksheets are not the only possibiliity. E. g. there where Sheets which only contained diagrams, but no Cells. They are not much in use today.
    So, to be save it is best to stick to the Worksheets property, because this only gives you worksheets which have a documented format. With bad luck, sheet could contain a Sheet which differs from your expectations.
    I doubt that there are many “non-worksheets” left in the wild, but you never know and Microsoft may introduce more sheet-variants.

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

Sidebar

Related Questions

I'm using the Excel COM interop to insert images (specifically EPS) into a spreadsheet.
What are the methods to destroy Excel COM Interop objects in C#, besides these:
I am doing some COM Interop work with Excel and other Office Automation Software.
The documentation for .NET's Excel interop API at msdn.com seems rather sparse. Does anyone
I built a application, it generates Excel with COM Interop. It works fine on
I'm opening an excel worksheet using the Microsoft.Office.Interop.Excel COM interface. I'm trying to adjust
In my winforms app interacting with Excel through the com interop, I'm trying to
I am having trouble releasing Excel Interop Com Objects which is causing my c#
I'm trying to create an Excel file with C# COM interop but seems it
When I import Microsoft.Office.Interop.Excel (with added com-reference to Excel Object library), it seems to

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.