Bonjour Ynss, le forum,
Une proposition a tester...de ce que j'ai compris...
Sub columncheck()
'variables to use in the code
Dim iCol As Long
Dim iCount As Long
Dim i As Long, dl As Long
'dernière ligne
dl = ActiveSheet.UsedRange.Rows.Count + 1
'to get the number of columns that you want to insert with an input box
iCount = InputBox(Prompt:="How many column you want to add?")
'to get the column number where you want to insert the new column
iCol = InputBox _
(Prompt:= _
"After which column you want to add new column? (Enter the column number)")
'loop to insert new column(s)
i = 1
Do While i <= iCount
ActiveSheet.Columns(iCol + 1).EntireColumn.Insert
ActiveSheet.Cells(2, iCol + 1).Value = "S" & iCol
ActiveSheet.Cells(3, iCol + 1) = 0
ActiveSheet.Range(Cells(3, iCol + 1), Cells(dl, iCol + 1)).FillDown
iCol = iCol + 1
i = i + 1
Loop
End Sub
Cordialement,