如果只是显示,可以写到drawcell事件
Select Case e.Col.Name Case "B列" If e.Row("A列") > Date.Today() Then e.Text = "未出售" Else e.Text = "出售" End IfEnd Select