[VB] Aide boucle Do While...
Résolu
alphonse
-
alphonse -
alphonse -
A voir également:
- Vbaide
- Vb - Télécharger - Langages
- My people do - Télécharger - Organisation
- Vb cable - Télécharger - Audio & Musique
- Mon pc s'allume et s'éteint en boucle ✓ - Forum Matériel & Système
- Do not turn off target traduction - Forum Samsung
2 réponses
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