Next sans for

Next sans for - VB/VBA/VBS - Programmation

Marsh Posté le 01-08-2005 à 11:54:31    

Salut  
G un message d'erreur m'indiquent next saans for et apres maintes verification il y abien le compte
 
 
AuxMatrix = Array("Columns CS", "Columns SS", "Columns Cladded" )
For j = 0 To 2
With Worksheets(AuxMatrix(j))
MsgBox AuxMatrix(j)
N = 0
For i = 5 To 5000
     
        If .Cells(i, 2) = "" And Cells(i + 1, 2) = "" Then
            For w = 1 To 5
                If Cells(i, 2 + w) = "" Then
                    N = i
                    Exit For
                End If
            Next w
            If N <> 0 Then
                N = i
                Exit For
            End If
        End If
 
    If N - 1 > Last_Data Then
        Last_Data = N - 1
    End If
 
Next i
 
Next j
 
 
D'avance merci

Reply

Marsh Posté le 01-08-2005 à 11:54:31   

Reply

Marsh Posté le 01-08-2005 à 12:27:53    

il manque le end with juste avant le next j...

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed