看一下drawcell事件。
http://www.foxtable.com/help/topics/0656.htm
If datatables("表B").Find("D = '" & e.row("D") & "' and E = '" & e.row("E") & "' and 逻辑 = true") isNot Nothing then
e.Style = "样式1"
End If