- Katılım
- 14 Ocak 2008
- Mesajlar
- 176
- Excel Vers. ve Dili
- 2010 türkçe
merhaba aşağıda yazdığım kodları çözümleyebilirmisiniz, if değeri ile tek sayfanın farklı bölümlerinde yazı yazdığımda, uyarı mesajları almak istiyorum, örneğin, I:Ag hücresi içinde işlem yaparsam, Ag hücresi 1 den büyükse uyarı versin. ancak bunun gibi birden fazla yapmam gerekenler var, bu formülleri birbirleriyle uyarlı nasıl yapabirilim.
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [I:AG]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AG") > Cells(Target.Row, "AH") Then MsgBox "Bu Şahsın Görev Sayısı 6 yı aşıyor : " & Cells(Target.Row, "Ag"), vbInformation
(ikinci if fonksiyonu)
If Intersect(Target, [I:L]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AL") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
(üçüncü if fonksiyonu)
If Intersect(Target, [M
]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AJ") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
(dördüncü if fonksiyonu)
If Intersect(Target, [Q:T]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AK") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
Son:
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [I:AG]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AG") > Cells(Target.Row, "AH") Then MsgBox "Bu Şahsın Görev Sayısı 6 yı aşıyor : " & Cells(Target.Row, "Ag"), vbInformation
(ikinci if fonksiyonu)
If Intersect(Target, [I:L]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AL") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
(üçüncü if fonksiyonu)
If Intersect(Target, [M
If Cells(Target.Row, "AJ") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
(dördüncü if fonksiyonu)
If Intersect(Target, [Q:T]) Is Nothing Then Exit Sub
If Cells(Target.Row, "AK") > 1 Then MsgBox "Bir Aya İkiden Fazla Görev Verdiniz", vbInformation
Son:
End Sub
