URL=http://imageshack.us/photo/my-images/163/78032253.png/]
[/URL]
Moderatori: Anthony47, Flash30005
[/URL]Sub format0202()
MyRan = "B7:U20" '<<< Le celle con i numeri da testare
Range(MyRan).Interior.ColorIndex = xlNone
For I = 0 To Range(MyRan).Rows.Count - 1
MyCnt = 1: preval = -1
For J = 0 To Range(MyRan).Columns.Count - 1
Range(MyRan).Range("A1").Offset(I, J).Select
If Range(MyRan).Range("A1").Offset(I, J) <> (preval + MyCnt) Then
If MyCnt > 2 Then
Range(MyRan).Range("A1").Offset(I, J - MyCnt).Resize(1, MyCnt).Interior.ColorIndex = MyCnt * 2
End If
preval = Range(MyRan).Range("A1").Offset(I, J): MyCnt = 1
Else
MyCnt = MyCnt + 1
End If
Next J
Next I
End Sub
=O(E(RIF.COLONNA()=2;B7=C7-1);E(RIF.COLONNA()>2;O(B7=A7+1;B7=C7-1)))=O(B7=C7-1;B7=A7+1)Range(MyRan).Range("A1").Offset(I, J - MyCnt).Resize(1, MyCnt).Interior.ColorIndex = MyCnt * 2
MyRan = "IlNomeDellintervallo"
Torna a Applicazioni Office Windows
| "Windows Firewall" e "ZoneAlarm Free Firewall" disattivati Autore: MarioLombardi |
Forum: Sistemi Operativi Windows Risposte: 6 |
| Mantenere la stessa formattazione con Errore Autore: danibi60 |
Forum: Applicazioni Office Windows Risposte: 5 |
Visitano il forum: Nessuno e 24 ospiti