1
我尝试使用DataNitro自动执行一些Excel任务,但我无法掌握如何为与其他人相关的多行编写新值,如何在Excel中使用DataNitro将值写入Excel中的多个单元
例如:我想它从第1列读取值,根据条件,写在列的响应2.
简单的例子:
difference = CellRange((2,2),(120,2)).value
Status = CellRange((2,3),(120,3)).value
for x in difference:
if x < -10:
Status = "Paused"
###here i don't know what to put
else:
Status = "Active"
###here i don't know what to put
感谢和抱歉,如果这个问题太笨!
这是伟大的本,谢谢! 有没有什么办法可以从第一个单元格到最后一个填充单元格设置CellRange? 在:difference = CellRange((2,2),(#last,2))。值 – user3293796
有:您可以使用Cell.vertical获取一列(和Cell.horizontal获取一行)。例如。差=单元(2,2)。垂直 –