Attribution d'une variable a une Selection.Autofill

Résolu
Djrome Messages postés 57 Date d'inscription vendredi 13 juin 2008 Statut Membre Dernière intervention 26 mai 2010 - 4 juil. 2008 à 16:15
Djrome Messages postés 57 Date d'inscription vendredi 13 juin 2008 Statut Membre Dernière intervention 26 mai 2010 - 4 juil. 2008 à 16:36
Salut les Kracks,

Dim varmaVariable As String
varmaVariable = Range ("W500"). Value

Range("W2").Select
    Selection.AutoFill Destination:=Range("W2:WmaVariable")

Je souhaiterai tirer la copie de W2 autant de fois que le chiffre (ou formule donnant un chiffre) compris dans W500.

D'avance merci

Douraka outchit, chto mièrvavo litchit .

2 réponses

NHenry Messages postés 15112 Date d'inscription vendredi 14 mars 2003 Statut Modérateur Dernière intervention 13 avril 2024 159
4 juil. 2008 à 16:26
Bonjour,

Range("W2:W" & maVariable)

http://nhen0039.chez-alice.fr/index.php
3
Djrome Messages postés 57 Date d'inscription vendredi 13 juin 2008 Statut Membre Dernière intervention 26 mai 2010
4 juil. 2008 à 16:36
Merci Henry...









Douraka outchit, chto mièrvavo litchit .
0
Rejoignez-nous