想要实现单元格动态变背景色,根据三个单元格的空值情况来表达,代码如下,老是出现编译错误,是什么问题呢If e.Row("1时间") = Nothing
e.Row("2时间") = Nothing
e.Row("3时间") IsNot Nothing
Then
e.Style = "绿色"
End If
If e.Row("1时间") IsNot Nothing
e.Row("2时间") = Nothing
e.Row("3时间") IsNot Nothing Then
e.Style = "橙色"
End If
If e.Row("1时间") IsNot Nothing
e.Row("2时间") IsNot Nothing
e.Row("3时间") IsNot Nothing Then
e.Style = "灰色"
End If
If e.Row("1时间") = Nothing
e.Row("2时间") = Nothing
e.Row("3时间") = Nothing Then
e.Style = "白色"
End If