通过保留图表以编程方式更新现有的Excel文件 [英] Update an existing excel file programmatically by keeping charts

查看:68
本文介绍了通过保留图表以编程方式更新现有的Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个包含现有公式的excel文件和一个基于用公式计算的单元格值的图表。我需要以编程方式访问此excel文件并更新一些单元格并再次保存文件。那里有库来处理这个问题(比如openpyxl)。
但是它们都没有保存或更新文件中的现有图表。更新后;图表已经消失。 

I have an excel file with existing formulas and one chart based on cell values calculated with formulas. I need to reach this excel file programmatically and update some cells and save the file again. There are libraries out there to handle this (like openpyxl). But none of them keep or update existing charts in file. After an update; charts are gone. 

是否有任何类型的库可以实现这一目标?编程语言/环境并不重要。 

Is there any  kind of library to achieve this? Programming language / environment does not matter. 

谢谢。

推荐答案

你可以使用Excel宏,但这需要打开文件....

You could use an Excel macro, but that will require opening the file....


这篇关于通过保留图表以编程方式更新现有的Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆