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.
我有一个关于使用 vba 在 excel 中设置单元格值的简单问题。
以下代码不起作用,有人可以帮助我吗?
Thisworkbook.sheets("name1").range("I"& 4 +k).value = ActiveSheet.Range("D" & k)
谢谢!
ThisWorkbook.Sheets("name1").Range("I" & (4 +k)).Value = ActiveSheet.Range("D" & k).Value
怎么样?周围的括号(4 + k)将有助于计算,.Value最后的括号将允许取值。
(4 + k)
.Value