预期:声明结束

时间:2019-10-17 07:28:03

标签: excel vba

需要以下代码的帮助: 在第1行中由于引号引起错误。

Range("L2").Formula = "=IF(D2="Demand Open",Networkdays(U2,Today())," - ")"
Set R = Range("B2", Range("B" & Rows.Count).End(xlUp))
Set R = Intersect(R.EntireRow, Range("L:L"))
R.FillDown
Range("L:L").Value = Range("L:L").Value

1 个答案:

答案 0 :(得分:1)

应为双""

Range("L2").Formula = "=IF(D2=""Demand Open"",Networkdays(U2,Today()),"" - "")"