Ceci est une page optimisée pour les mobiles. Cliquez sur ce texte pour afficher la vraie page.

XL 2010 Séparer macro en 2

samfau

XLDnaute Nouveau
Bonjour, voila mon probleme,



J'ai tenter de faire tentative en changeant ceci, mais sans succes:
Code:
      Range(Cells(ln, col), Cells(ln, col + 4)).ClearContents

            GoTo fin

        ElseIf WorksheetFunction.CountA(Range(Cells(ln, col + 1), Cells(ln, col + 7))) = 5 Then

            If Cells(ln, col + 3) ="Vente" Then

                Set cell = fd.Range(fd.Columns(6), fd.Columns(20)).Find(Cells(ln, col + 3).Value, lookat:=xlWhole)

                Cells(ln, col + 5) = cell.Offset(0, 1) else if
                
                Cells(ln, col + 3) ="Ajout inventaire" Then

                Set cell = fd.Range(fd.Columns(6), fd.Columns(20)).Find(Cells(ln, col + 3).Value, lookat:=xlWhole)

                Cells(ln, col + 5) = cell.Offset(0, 2)

            End If
 

Discussions similaires

Réponses
1
Affichages
172
Réponses
0
Affichages
155
Les cookies sont requis pour utiliser ce site. Vous devez les accepter pour continuer à utiliser le site. En savoir plus…