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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:05:07+00:00 2026-05-15T05:05:07+00:00

So far all the Excel stuff revolves around opening a file, writing values to

  • 0

So far all the Excel stuff revolves around opening a file, writing values to it and saving it.

Is there a way to update the data in the Excel (while it’s opened) automatically?

Thanks!

P.S. I am looking for more information with respect to Microsoft.Office.Interop.Excel;

  • 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-15T05:05:08+00:00Added an answer on May 15, 2026 at 5:05 am

    Not sure how you’re writing the data, but for reading data from Excel, this is what I do:

    select the Range I need (can be from one cell to several rows and columns – it’s a single cell here):

    Excel.Range cell = m_worksheet.get_Range(_CellName(end, column), _CellName(end, column));
    

    then get the values you need from the selected cell:

    string value = cell.Value2.ToString().Substring(...);
    

    you can also manipulate the colors if there are any:

    if(Convert.ToInt32(cell.Interior.ColorIndex) == 6) //we have yellow background
    

    be careful with colors if your users have Excel 2007, though. You’ll have to use the RGB codes.

    Also, while processign the Excel file, it’s locked for other applications, I think. You’ll have to check that for the 3rd party readign the values.

    And for _CellName:

    private string _CellName(int row, int col)
     {
          string result = "";
          if (col > 26) // for columns like 'AA' 
          {
               result = ((char)((char)(col / 26) + 'A' - 1)).ToString(); //get the first letter
          }
          result += ((char)((char)(col % 26) + 'A' - 1)).ToString(); //get the second/only letter
          return result + Convert.ToString(row);
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure how to word the question... Basically, so far all my SQL stuff
I'm trying to read an Excel file (Office 2003). There is an Excel file
I want to use poi to set all cells of my excel file to
basically, i am uplaoding a dynamic excel file and i want to select all
I am trying to build a batch file that deletes all excel files older
I really have no idea how to go about this. So far all I
I read a few websites and questions but all were far beyond my level
As far as I know that JSF keeps all the session scoped bean in
Thus far used sql server stored procedures for all my web applications... Now thought
I followed all of the instructions so far from: http://code.google.com/p/appengine-jruby/wiki/RunningRails and http://gist.github.com/268192 Currently, I'm

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.