Next sans for ?????

Next sans for ????? - VB/VBA/VBS - Programmation

Marsh Posté le 01-08-2005 à 11:52:47    

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

Reply

Marsh Posté le 01-08-2005 à 11:52:47   

Reply

Marsh Posté le 01-08-2005 à 13:06:13    

Tu peux faire un troisième sujet ? :o

Reply

Marsh Posté le 01-08-2005 à 13:16:21    

Bonjour,
Ferme le With, ça devrait le faire...
A+


---------------
roger
Reply

Sujets relatifs:

Leave a Replay

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