【发布时间】:2018-04-23 16:22:56
【问题描述】:
如果我想将 Excel 公式中的值放入单元格中,并且只取值而不是“公式”
我已尝试使用此代码,但它不仅给了我价值。
Dim ZmAntal As Long
Dim CountryRange As Range, C As Range
Dim Res As Variant
ZmAntal = Worksheets("Maskinerum").Cells(8, 4).value
Set CountryRange = Sheets("Zmbistad").Range(Cells(2, 1), Cells(ZmAntal, 1))
For Each C In CountryRange
Res = "=CONCATENATE(RC[1],RC[14])"
If Not IsError(Res) Then
C.Offset(0, 0).value = Res
End If
Next C
End Sub
【问题讨论】: