Foxtable(狐表)用户栏目专家坐堂 → [求助]并列条件和代码怎么表达


  共有2631人关注过本帖平板打印复制链接

主题:[求助]并列条件和代码怎么表达

美女呀,离线,留言给我吧!
fox20150629
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:49 积分:412 威望:0 精华:0 注册:2015/8/11 10:52:00
[求助]并列条件和代码怎么表达  发帖心情 Post By:2015/8/21 13:56:00 [只看该作者]

想要实现单元格动态变背景色,根据三个单元格的空值情况来表达,代码如下,老是出现编译错误,是什么问题呢
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


 回到顶部