Option Explicit
Dim x As Long, Fac_Dev As String, I As Long, K, n, NFacture As Long
Dim Xonglet, Xcel, u, numero As String, reponse As String
Sub N_Facture()
Application.ScreenUpdating = False
With Sheets("Factures")
u = Year(Now()) & "" & Format(Month(Now()), "00") & "" & Format(Day(Now()), "00")
x = .Range("A65536").End(xlUp).Row
Xcel = Format(Right(.Cells(x, 1), 4) + 1, "0000")
numero = u & " " & Xcel
End With
End Sub