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 中获取一系列单元格的值的乘积。
我有一个选择,例如:(有效)
ActiveSheet.Range(Cells(i, j), Cells(i, z)).Select
我想将一个范围的产品放在另一个单元格中,但这不起作用:
'Range("X10").Formula = "=PRODUCT(Range(Cells(i, j),Cells(i, z)))"
非常感谢您的帮助,在此先感谢!
Range("X10").Formula = "=PRODUCT(" & Cells(i, j).Address & ":" & Cells(i, z).Address & ")"