在VBA中引用字符串中的单元格值,可以使用以下方法:
Dim cellAddress As String
Dim cellValue As Variant
cellAddress = "A1"
cellValue = Range(cellAddress).Value
Dim rowNumber As Integer
Dim columnNumber As Integer
Dim cellValue As Variant
rowNumber = 1
columnNumber = 1
cellValue = Cells(rowNumber, columnNumber).Value
Dim cellAddress As String
Dim cellValue As Variant
cellAddress = "'Sheet1'!A1"
cellValue = Evaluate(cellAddress)
以上是在VBA中引用字符串中的单元格值的几种常用方法。根据具体的需求和场景,选择合适的方法来获取单元格的值。
领取专属 10元无门槛券
手把手带您无忧上云