[VBA] Selection conditionelle copy newsheet
Fermé
CryingJoke
-
31 oct. 2007 à 10:03
aminea Messages postés 2 Date d'inscription vendredi 28 septembre 2007 Statut Membre Dernière intervention 1 novembre 2007 - 1 nov. 2007 à 12:48
aminea Messages postés 2 Date d'inscription vendredi 28 septembre 2007 Statut Membre Dernière intervention 1 novembre 2007 - 1 nov. 2007 à 12:48
A voir également:
- [VBA] Selection conditionelle copy newsheet
- Super copy - Télécharger - Gestion de fichiers
- Mise en forme conditionelle - Guide
- Excel compter cellule couleur sans vba - Guide
- Find vba - Astuces et Solutions
- Inverser selection excel - Forum Excel
1 réponse
aminea
Messages postés
2
Date d'inscription
vendredi 28 septembre 2007
Statut
Membre
Dernière intervention
1 novembre 2007
1
1 nov. 2007 à 12:48
1 nov. 2007 à 12:48
Bonjour CryingJoke,
Essaie ceci, ça doit marcher avec un peu d'adaptation
Essaie ceci, ça doit marcher avec un peu d'adaptation
Sub Macro() Dim R As Range For Each R In Range("B2:B" & Range("B65536").End(xlUp).Row) If Not (FeuilleExist(R.Value)) Then Sheets.Add ActiveSheet.name = R.Value End If Sheets(R.Value).Select Range("A" & Range("A65536").End(xlUp).Row + 1) = R.Offset(0, -1) Next R End Sub Function FeuilleExist(name As String) As Boolean FeuilleExist = False Dim sh As Worksheet For Each sh In Worksheets If sh.name = name Then FeuilleExist = True Exit For End If Next sh End Function