读取Excel单元格值,而不是计算它的公式-openpyxl [英] Read Excel cell value and not the formula computing it -openpyxl
本文介绍了读取Excel单元格值,而不是计算它的公式-openpyxl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用openpyxl读取单元格值(excel addin-webservice更新此列. )
I am using openpyxl to read cell value (excel addin-webservice update this column. )
我使用了data_only = True
,但是它没有显示当前单元格的值,而是它在Excel上次读取工作表时存储的值.
I have used data_only = True
but it is not showing the current cell value instead it is the value stored the last time Excel read the sheet.
wbFile = openpyxl.load_workbook(filename = xxxx,data_only=True)
wsFile = wbFile[c_sSheet]
我如何读取单元格的实际值?
How can i read the cell actual value ?
推荐答案
wb = openpyxl.load_workbook(filename, data_only=True)
data_only
标志有帮助.
这篇关于读取Excel单元格值,而不是计算它的公式-openpyxl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文