【发布时间】:2025-12-02 12:40:01
【问题描述】:
我正在尝试将公式粘贴到一系列单元格中(我只希望它粘贴到 K 列最后使用的行),但我不断收到语法错误
With ThisWorkbook
With .Sheets("Ex")
lRow4 = .Cells(.Rows.count, 1).End(xlUp).Row
Set rng4 = .Range("J6:J" & lRow4)
rng4. FormulaR1C1."=IF(RC[1]='Lease & RPM Charges'!R[-4]C[-6],UPPER(TEXT(REPLACE(REPLACE('Lease & RPM Charges'!R[-4]C[-7],5,0,""-""),8,0,""-""),""DD-mmm-YY"")))"
End With
End With
End Sub
【问题讨论】: