Inserting Image to each page in word 2007
I wrote a small VBA routine to insert an image to each page of a word document, and it worked fine on Word 2010. But when I tested that with word 2007, it advances page by page, but inserts the image to the first page, instead of inserting on the next page.
Here is the code:
For i = CurPage To CurPage + NumOfPages - 1
Set WORD_Image = Word.ActiveDocument.Shapes.AddPicture(ImageName, , True, 0, 0, 10, 10)
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1
Would you please show me how to make it work on 2007?