![](/img/trans.png)
[英]Get information from a dictionary and set it in a cell in excel-vba
[英]How can I locate the cell and do math by the data resulted from other cell in Excel-VBA?
对于您显示的范围参考,请使用
Range("F" & Range("B2").Value)
你可以说
Range("F" & Range("B2").Value) = Range("A2")
您还应该包括完整的工作表参考,以避免隐式使用 Activesheet。
例如,如果工作表 1 可以是:
With Worksheets("Sheet1")
.Range("F" & .Range("B2").Value) = .Range("A2")
End With
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.