[VB] Aide boucle Do While...
Résolu/Fermé
A voir également:
- Vbaide
- Vb - Télécharger - Langages
- Vb cable - Télécharger - Audio & Musique
- Xwxwxwxwv songs do 2023 ✓ - Forum Audio
- What you do what you say - Forum Audio
- Fichier do - Forum Logiciels
2 réponses
michel_m
Messages postés
16603
Date d'inscription
lundi 12 septembre 2005
Statut
Contributeur
Dernière intervention
16 décembre 2023
3 312
24 janv. 2011 à 10:22
24 janv. 2011 à 10:22
Bonjour
En supposant que cells(1;11) est fixe (on aurait pu écrire range("K1")
En supposant que cells(1;11) est fixe (on aurait pu écrire range("K1")
Option Explicit Sub xxxx() Dim init_id As Long, derlig As Long, compteur2 As Long init_id = Sheets("calc").Cells(1, 11) Application.ScreenUpdating = False With Sheets("appartenir") derlig = .Cells(.Cells.Rows.Count, 2).End(xlUp).Row For compteur2 = 1 To derlig .Cells(compteur2, 1) = init_id init_id = init_id + 1 Next End With Sheets("calc").Cells(1, 11) = init_id End Sub