- Katılım
- 29 Aralık 2007
- Mesajlar
- 3
- Excel Vers. ve Dili
- excell
Saygı değer Üstadlarım,
Tür uyuşmazlığı hatası alıyorum. Fakat kod üzerindeki hatayı bulamıyorum. Yardımlarınızı rica edebilir miyim?
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo dur
Application.EnableEvents = False
If Not Intersect(Target, Range("B:B")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("G:G")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("P
")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("E:E")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("U:U")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("O:O")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
devam:
Application.EnableEvents = True
Exit Sub
dur:
MsgBox Err.Description
Resume devam
End Sub
Tür uyuşmazlığı hatası alıyorum. Fakat kod üzerindeki hatayı bulamıyorum. Yardımlarınızı rica edebilir miyim?
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo dur
Application.EnableEvents = False
If Not Intersect(Target, Range("B:B")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("G:G")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("P
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("E:E")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("U:U")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
If Not Intersect(Target, Range("O:O")) Is Nothing Then
If Target.Value = "" Then Application.Undo
End If
devam:
Application.EnableEvents = True
Exit Sub
dur:
MsgBox Err.Description
Resume devam
End Sub
