1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Private Sub cmdRemplire_Click()
'*******************************************************
'Permets de remplir les cellules vides automatiquement '
'*******************************************************
Dim MaPlage, Cell As Range, Col As Integer, Ligne As Long
Ligne = Cells.Find("*", , , , xlByRows, xlPrevious).Row
Col = Cells.Find("*", , , , xlByColumns, xlPrevious).Column
Set MaPlage = Range([A4], Cells(Ligne, Col)) 'à adapter
MaPlage.SpecialCells(xlCellTypeBlanks).Value = "/"
'For Each Cell In MaPlage.SpecialCells(xlCellTypeBlanks)
'
' If IsEmpty(Cell.Value) Then
' Cell.Value = "/"
' End If
'
'Next Cell
End Sub |
Partager