--
If e.Col.name = "测一" Then
If e.Row("第一列") = e.Row("测一")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测二" Then
If e.Row("第一列") = e.Row("测二")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测三" Then
If e.Row("第一列") = e.Row("测三")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测四" Then
If e.Row("第一列") = e.Row("测四")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测五" Then
If e.Row("第一列") = e.Row("测五")Then
e.Style = "样式一"
End If
End If
If e.Col.name = "测二" Then
If e.Row("第二列") = e.Row("测一")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测二" Then
If e.Row("第二列") = e.Row("测二")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测三" Then
If e.Row("第二列") = e.Row("测三")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测四" Then
If e.Row("第二列") = e.Row("测四")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测五" Then
If e.Row("第二列") = e.Row("测五")Then
e.Style = "样式一"
End If
End If
If e.Col.name = "测三" Then
If e.Row("第三列") = e.Row("测一")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测二" Then
If e.Row("第三列") = e.Row("测二")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测三" Then
If e.Row("第三列") = e.Row("测三")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测四" Then
If e.Row("第三列") = e.Row("测四")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测五" Then
If e.Row("第三列") = e.Row("测五")Then
e.Style = "样式一"
End If
End If
If e.Col.name = "测四" Then
If e.Row("第四列") = e.Row("测一")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测二" Then
If e.Row("第四列") = e.Row("测二")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测三" Then
If e.Row("第四列") = e.Row("测三")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测四" Then
If e.Row("第四列") = e.Row("测四")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测五" Then
If e.Row("第四列") = e.Row("测五")Then
e.Style = "样式一"
End If
End If
If e.Col.name = "测五" Then
If e.Row("第五列") = e.Row("测一")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测二" Then
If e.Row("第五列") = e.Row("测二")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测三" Then
If e.Row("第五列") = e.Row("测三")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测四" Then
If e.Row("第五列") = e.Row("测四")Then
e.Style = "样式一"
End If
ElseIf e.Col.name = "测五" Then
If e.Row("第五列") = e.Row("测五")Then
e.Style = "样式一"
End If
End If
执行上面代码,无法实现需求效果。
此主题相关图片如下:样式问题一.jpg