试试这个代码: '* +++++++++++++++++++++++++++++
'* Created By I Love You_Word!@ExcelHome 2005-4-27 10:46:34
'仅测试于System: Windows NT Word: 10.0 Language: 2052
'^The Code CopyIn [ThisDocument-ThisDocument]^'
'* -----------------------------Option Explicit
Sub Example()
Dim MyRange As Range, MyShape As Shape, PagesCount As Integer, i As Integer
With ActiveDocument
PagesCount = .Content.Information(wdNumberOfPagesInDocument)
For i = 1 To PagesCount
Set MyRange = .Range(0, 0).GoTo(wdGoToPage, wdGoToPrevious, , i)
Set MyShape = .Shapes.AddPicture("C:\Documents and Settings\My Documents\My Pictures\8.bmp", , , 0, 0, , , MyRange)
With MyShape
.RelativeVerticalPosition = wdRelativeVerticalPositionPage
.RelativeHorizontalPosition = wdRelativeVerticalPositionPage
.Left = 0
.Top = 0
.WrapFormat.Side = wdWrapBoth
.WrapFormat.Type = 3
.ZOrder 5
End With
Next
End With
End Sub
'----------------------图片路径的获得你自己看吧。 |