简体   繁体   English

Excel单元格注释导入到SQL Server

[英]Excel Cell Comments import into SQL Server

Have found myself needing to import a spreadsheet that someone has been using as an adhoc database into SQL Server to build a proper application around it. 已经发现自己需要将某人一直用作临时数据库的电子表格导入SQL Server,以围绕该电子表格构建适当的应用程序。 Unfortunately the spreadsheet uses comments to record reasons for actions against numerous fields and I need to bring those into the DB too. 不幸的是,电子表格使用注释来记录针对多个字段采取措施的原因,我也需要将其带入数据库。

Can anyone recommend a fairly simple way or workflow for importing the comments into sql whilst maintaining a link to the original cell? 任何人都可以推荐一种相当简单的方法或工作流,以将注释导入sql,同时保持到原始单元格的链接吗?

Thanks 谢谢

There are at least two approaches. 至少有两种方法。 Say column C has data and Comments. 说C列有数据和注释。 Say column H is un-used. 假设H列未使用。 A macro could extract the comments from C and store them in H. 宏可以从C中提取注释并将其存储在H中。

The other approach would have the macro extract the Comment from each cell and append the text to the data in that cell. 另一种方法是让宏从每个单元格中提取注释,然后将文本附加到该单元格中的数据中。

These changes to the worksheet would not have to be permanent. 对工作表的这些更改不必是永久的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM