Dim strClip As String
Dim MyData As DataObject
strClip = ""
strClip = Sheets("insert").Cells(1, 1).Value
For t = 1 To 10000
If Sheets("insert").Cells(t, 1) = "" Then Exit For
strClip = strClip & vbCrLf & Sheets("insert").Cells(t, 1).Value
Next t
Set MyData = New DataObject
MyData.SetText strClip
MyData.PutInClipboard
Dim RetVal
RetVal = Shell("notepad.exe", 3)
SendKeys "%E"
SendKeys "{DOWN 3}"
SendKeys "~"
SendKeys "%F"
SendKeys "{DOWN 2}"
SendKeys "~"
SendKeys "Génération topo.scr"