Sub test()
MsgBox Selection.Count
End Sub
Sub test()
MsgBox fonction(Selection)
End Sub
Function fonction(r As Range) As String
fonction = r.Count
End Function
Sub Cell_Cpmt()
Cells(ActiveCell.Row, 1) = Selection.Count
End Sub
D'où le message#4Déjà merci et bonne année, malheureusement j'aurais préféré une sub function...
Function CompterCellules(r As Range)
CompterCellules = r.CountLarge
End Function
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
[A1] = Selection.Count
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
[A1] = Selection.CountLarge
End Sub