Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以写入已经有价值的excel单元格,而不是删除已经存在的内容?因此,只需添加已经存在的内容即可。
例如,我有一个 for each 循环,它获取一个 diff 值,我希望它全部进入一个单元格。那可能吗?
当然......在单元格A1中输入一个值,然后:
Sub Addup() For i = 1 To 10 With Range("A1") .Value = .Value + i End With Next i End Sub