DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Makro1()
sat = [a65536].End(3).Row
Range("a1:a" & sat).Sort key1:=[a1], order1:=xlAscending
For i = 2 To sat
If Cells(i, 1) - 1 <> Cells(i - 1, 1) Then
MsgBox Cells(i - 1, 1) & (" Bu kayıttan sonra problem var")
End If
Next
End Sub
Sub Makro1()
sat = [[COLOR=blue]a[/COLOR]65536].End(3).Row [COLOR=red]'1[/COLOR]
Range("[COLOR=blue]a[/COLOR]1:[COLOR=blue]a[/COLOR]" & sat).Sort key1:=[[COLOR=blue]a[/COLOR]1], order1:=xlAscending [COLOR=red]'2[/COLOR]
For i = 2 To sat[COLOR=red] '3[/COLOR]
If Cells(i, [COLOR=blue]1[/COLOR]) - 1 <> Cells(i -[COLOR=black] 1[/COLOR], [COLOR=blue]1[/COLOR]) Then [COLOR=red]'4[/COLOR]
x = Cells(i, [COLOR=blue]1[/COLOR]) - Cells(i - 1, [COLOR=blue]1[/COLOR]) - 1 [COLOR=red]'5[/COLOR]
MsgBox Cells(i - 1, [COLOR=blue]1[/COLOR]) & (" den " & Cells(i, [COLOR=blue]1[/COLOR]) & " kadar " & x & " adet kayıt yok.") '[COLOR=red]6[/COLOR]
End If '[COLOR=red]7[/COLOR]
Next '[COLOR=red]8[/COLOR]
End Sub