vba 应用程序定义或对象定义错误
PrivateSubWorksheet_Change(ByValTargetAsRange)Application.ScreenUpdating=FalseIfTarge...
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Locked = False Then
If Target.Column < 6 Then
Target.Interior.ColorIndex = Range("A" & Target.Row).Interior.ColorIndex
ElseIf Target.Column < 12 Then
Target.Interior.ColorIndex = Range("H" & Target.Row).Interior.ColorIndex
End If
End If
Application.ScreenUpdating = True
End Sub 展开
Application.ScreenUpdating = False
If Target.Locked = False Then
If Target.Column < 6 Then
Target.Interior.ColorIndex = Range("A" & Target.Row).Interior.ColorIndex
ElseIf Target.Column < 12 Then
Target.Interior.ColorIndex = Range("H" & Target.Row).Interior.ColorIndex
End If
End If
Application.ScreenUpdating = True
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询