How to read single Excel cell value

前端 未结 7 1913
情深已故
情深已故 2020-11-29 04:04

I have excel file with sheet1 that has a value I need to read on row 2 and column 10. Here is my code.

Excel.Workbook excelWorkbook = excelApp.Workbooks.Ope         


        
7条回答
  •  眼角桃花
    2020-11-29 04:20

    It is better to use .Value2() instead of .Value(). This is faster and gives the exact value in the cell. For certain type of data, truncation can be observed when .Value() is used.

提交回复
热议问题