Private Sub CommandButton1_Click() Dim zone As String zone = RefEdit1.Value With Range(zone) MsgBox "ligne haute: " & .Row MsgBox "ligne basse: " & .Row + .Rows.Count - 1 End With
With Range(plage) Pligne = .Row Dligne = .Row + .Rows.Count - 1 colonne = .Column End With
Function car_col(num As Integer) As String Dim serie As Byte Select Case num Case Is = 0 car_col = "#########" Case Is < 27 car_col = Chr(64 + num) Case Else serie = Int((num - 26) / 27) + 1 car_col = Chr(64 + serie) & Chr(64 + num - 26 * serie) End Select End Function