Moderatori: Anthony47, Flash30005
By Sal ha scritto:ti ripasso il mio file
By Sal ha scritto:Ora riuscire a determinare degli eventi del genere, sarebbe una fortuna...
Sub Freq()
URA = Sheets("Foglio1").Range("C" & Rows.Count).End(xlUp).Row
Worksheets("Foglio2").Range("D2:E9").ClearContents
For RRA = 3 To URA
TA = Val(Worksheets("Foglio1").Range("K" & RRA).Value & Worksheets("Foglio1").Range("L" & RRA).Value & Worksheets("Foglio1").Range("M" & RRA).Value)
For RR = 2 To 9
TT = Val(Worksheets("Foglio2").Range("A" & RR).Value & Worksheets("Foglio2").Range("B" & RR).Value & Worksheets("Foglio2").Range("C" & RR).Value)
If TA = TT Then Worksheets("Foglio2").Range("D" & RR).Value = Worksheets("Foglio2").Range("D" & RR).Value + 1
Next RR
Next RRA
Call Rit
End Sub
Sub Rit()
URA = Sheets("Foglio1").Range("C" & Rows.Count).End(xlUp).Row
'Worksheets("Foglio2").Range("D2:C9").ClearContents
For RR = 2 To 9
TT = Val(Worksheets("Foglio2").Range("A" & RR).Value & Worksheets("Foglio2").Range("B" & RR).Value & Worksheets("Foglio2").Range("C" & RR).Value)
For RRA = URA To 3 Step -1
TA = Val(Val(Worksheets("Foglio1").Range("K" & RRA)) & Val(Worksheets("Foglio1").Range("L" & RRA)) & Val(Worksheets("Foglio1").Range("M" & RRA)))
If TA = TT Then
Worksheets("Foglio2").Range("E" & RR).Value = URA - RRA
GoTo saltaTA
End If
Next RRA
saltaTA:
Next RR
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
...
If Not Intersect(Target, [J:J]) Is Nothing Then
If (Selection.Rows.Count + Selection.Columns.Count) > 2 Then Exit Sub '<<<< aggiungere qui questa riga
Application.EnableEvents = False
...
End Sub
Sub TrovaSpia()
Set Ws1 = Worksheets("UK 49S IN ORDINE DI DATA")
Set Ws2 = Worksheets("spia.1mo")
Estr = Ws2.Range("G4").Value
Ws2.Range("I5:I53").ClearContents
Application.ScreenUpdating = False
Application.Calculation = xlManual
UR1 = Ws1.Range("A" & Rows.Count).End(xlUp).Row
For RR1 = 2 To UR1
If Ws1.Cells(RR1, 3).Value = Estr Then
For NS = 1 To 49
For RR2 = RR1 + 1 To UR1
If Ws1.Cells(RR2, 3).Value = NS Then Ws2.Range("I" & NS + 4).Value = Ws2.Range("I" & NS + 4).Value + 1
Next RR2
Next NS
GoTo Esci
End If
Next RR1
Esci:
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$G$4" Then Exit Sub
Call TrovaSpia
End Sub
Ws3.Range("B2:AX50").Clear '<<<< qui avevi Ws2....
CODICE: SELEZIONA TUTTO
Ws3.Range("B2:AX50").Clear '<<<< qui avevi Ws2....
Se non ti pulisce la colonna AX è perché hai corretto a mano il codice
(a me risulta che l'8 è uscito solo 2 volte dopo il due)
Torna a Applicazioni Office Windows
Classi e radici quadrate applicate ai 90 numeri del lotto. Autore: nelson1331 |
Forum: Applicazioni Office Windows Risposte: 8 |
cercare e prelevare 128 estraz del lotto Autore: raimea |
Forum: Applicazioni Office Windows Risposte: 6 |
Questo progetto (dedicato al lotto), si puo' realizzare ? Autore: nelson1331 |
Forum: Applicazioni Office Windows Risposte: 18 |
Visitano il forum: Nessuno e 6 ospiti