Tu peux aussi créer un tableau de ta plage de cellules
1 2 3 4 5 6 7 8 9 10 11 12
| Sub test()
Dim Tablo As Variant
Application.ScreenUpdating = False
'Crée le tableau
Tablo = Range(Cells(1, 1), Cells(Range("A65536").End(xlUp).Row, Range("IV1").End(xlToLeft).Column)).Value
For i = 1 To Range("IV1").End(xlToLeft).Column
For j = 1 To UBound(Tablo)
Cells(j, i) = CSng(Tablo(j, i) / 1000)
Next
Next
Application.ScreenUpdating = True
End Sub |
Fonctionne ainsi si... tu as des en-têtes de colonnes...

Envoyé par
sebest95
Il n aime pas trop cett ligne :
DerC = Cells(2, colums.Count).End(xlToLeft).Column
"Il" a raison, moi non plus 
Edit
Ok, je corrige aussi :
Dim i as Integer, j as long
(ici, i est le N° de colonne)
Partager