Excel Oledb 更新查询 - 在 Excel 2016 中更新标题行

问题描述

尝试使用 Oledb 更新 Excel 中的行,但更新查询会更新 Excel 2016 中的标题行。

它在 Excel 2010 或更早版本中运行良好,只是想知道 Excel 2016 需要什么?让这一切奏效。

Excel表格如下,

enter image description here

Connect 使用的连接字符串如下,

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filePath + ";Extended Properties=\"Excel 8.0;\"";

更新查询如下,

Update [Sheet1$A2:C] set [Head 1] = 'ABC'  Where [Rno]=1

查询在 Excel 2016 中的输出

enter image description here

任何提示将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)