作者:点燃半吱煙 | 来源:互联网 | 2023-05-19 06:26
IhaveanExcelspreadsheetwithmanytabs.Idliketoexportthelastcolumnofeachsheetinate
I have an Excel spreadsheet with many tabs. I'd like to export the last column of each sheet in a text file (all in the same file, the first line of the second sheet must go just after the last line of the fist sheet).
我有一个包含许多选项卡的Excel电子表格。我想在文本文件中导出每个工作表的最后一列(所有在同一个文件中,第二个工作表的第一行必须在第一个工作表的最后一行之后)。
The thing is the number of columns changes from one sheet to another. The number of the last column can be given by the last non empty cell on the first row.
事情是从一张纸到另一张纸的列数变化。最后一列的编号可以由第一行上的最后一个非空单元格给出。
I've seen how to write in a file, but I'm clueless on how to iterate over sheets and rows...
我已经看过如何在一个文件中写,但我对如何迭代表和行无能为力......
Any help is welcome. Thanks.
欢迎任何帮助。谢谢。
2 个解决方案