以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]程老师,帮忙看看这个表样式为什么不行呢!  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=31609)

--  作者:sadfox
--  发布时间:2013/4/17 22:03:00
--  [求助]程老师,帮忙看看这个表样式为什么不行呢!

If e.Col.Name = "备注" Then
    If e.Row.IsNull(e.Col.Name) = False 
        If e.Row(e.Col.Name) Like "亏损" Then 

            e.Style = "样式2" 
        End If
    End If
End If

 

单元格包含某个词组,用样式2,为什么不行呢?


--  作者:程兴刚
--  发布时间:2013/4/17 22:51:00
--  

If e.Col.Name = "备注" Then
    If e.Row.IsNull(e.Col.Name) = False 
        If e.Row(e.Col.Name) Like "*亏损*" Then 

            e.Style = "样式2" 
        End If
    End If
End If


--  作者:sadfox
--  发布时间:2013/4/17 22:59:00
--  
晕,要加2个星号啊!难怪我弄到现在都不行,谢谢程老师!