当我运行此代码时,它可以运行谎言魅力
Sub drag()
'
' drag Macro
'
'
Dim lastRow As Long, i As Long
Dim ws As Worksheet
Set ws = Sheets("WIP")
lastRow = ws.Range("A" & Rows.Count).End(xlUp).Row
Sheets("WIP").Select
Range("N2:N" & lastRow).Formula = "=G3&"",""&L3"
End Sub
问题在于,当我想用这个替换公式时:
=IF(RIGHT(F2;1)="k";"kit";IF(H2="LIM-mètre linéaire";"tissu";"composant"))
我无法运行代码请任何帮助:)
答案 0 :(得分:0)
首先尝试将分号更改为逗号,如果不起作用
尝试
=IF(RIGHT(F2;1)="""k""","""kit""",IF(H2="""LIM-mètre linéaire""","""tissu""","""composant"""))