Dim aa As RowFor Each aa In Tables("总账初期录入_Table1").Rows If aa("科目级次") <> "末级" Then
aa.Locked = True
aa行背景需要变成红色
End IfNext