Sub creationMacro()
Dim X As Integer
With ActiveWorkbook.VBProject.VBComponents("Feuil1").CodeModule
X = .CountOfLines
.InsertLines X + 1, "Private Sub Worksheet_SelectionChange(ByVal Target As Range)"
.InsertLines X + 2, _
"MsgBox ""La cellule sélectionnée: """ & Chr(38) & " Target.Address,,""Message"" "
.InsertLines X + 3, "End Sub"
End With
End Sub
Sub sbDeleteASheet()
ActiveSheet.Clear
End Sub