需要以下代码的帮助: 在第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
答案 0 :(得分:1)
应为双""
Range("L2").Formula = "=IF(D2=""Demand Open"",Networkdays(U2,Today()),"" - "")"