Sub Main
   Dim Ruota,IniCol,FinCol
   Dim Rig,Col,Col1
   Dim a,b,nSomma
   nSomma=cint(InputBox("Inserisci una Somma da 1 a 90","Ricerca Somma",90))
 
   For Rig = 1 To righe
      For Ruota = 1 To 11
         FinCol = Ruota*5
         IniCol = FinCol - 4
         ReDim aN(90)
        
         For Col = IniCol To FinCol - 1
            a = GetValueInt(Rig,Col)
            For Col1 = Col + 1 To FinCol
               b = GetValueInt(Rig,Col1) 'as Long [Ottiene il valore di una cella espresso come numero intero]
               If Somma(a,b) = nSomma Then aN(a) = 1:aN(b) = 1
            Next
         Next
         For Col = IniCol To FinCol
            a = getValueint(Rig,Col)
            If aN(a) = 1 Then
               Call setCerchio(Rig,Col)
            End If
         Next
      Next
   Next
End Sub
Function Somma(a,b)
   Dim nSomma
   nSomma = (a + b)
   Do While nSomma > 90
      nSomma = 90 - nSomma
   Loop
   Somma = nSomma
End Function