Dim VBProj As VBIDE.VBProject
Dim VBComp As VBIDE.VBComponent
Dim CodeMod As VBIDE.CodeModule
Dim LineNum As Long
Const DQUOTE = """" ' one " character
Set VBProj = ActiveWorkbook.VBProject
Set VBComp = VBProj.VBComponents("Module4")
Set CodeMod = VBComp.CodeModule
With CodeMod
[I]Ici, je ne trouve pas comment sélectionner la ligne 22 et de copier[/I]
End With
End Sub