在Drawcell写入如下代码,想改变单元各的背景颜色,但是报错,应如何写?
Dim nms() As Single = {"A1","B1",“C1","D1"}For Each nm As Single In nmsIf e.Row(nm)< -0.1 Then e.Style = "样式1" Elself e.Row(nm) > 0.1 e.Style = "样式2"Next End If