1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Sub CopierPhotosDansWordDepuisExcel()
Dim Wd As Word.Application
Dim dwd As Word.Document
Dim Cl As Worksheet
Dim NoLigne As Long, i As Long, LeText As String
Set Cl = ActiveSheet
Set Wd = CreateObject("Word.Application")
Set dwd = Wd.Documents.Open("d:\doc\CollerDansWord.doc")
Wd.Visible = True
DoEvents
For Each Limage In Worksheets("Feuil1").Shapes
ActiveSheet.Shapes(Limage.Name).Copy
Wd.Selection.Paste
DoEvents
Next
dwd.Close true
Wd.Quit
Set dwd = Nothing
Set Wd = Nothing
Set Cl = Nothing
End Sub |
Partager