Hello,
I am quite fresh to Word VBA object model, therefore my code examples may be far away of proper solution. I will appreciate any help, hint which can help.
Here is my problem:
On my Word document I have many pages. On each page I have picture inserted.
I was able to remove old picture and add new one in the same place where the old was, but only on the first page! I am not able to make it work in multi-pages document
Here is my routine:
I've noticed that new pictures are added always on the first page. I believe that 'top' is being measured from the top of the 'current' page.![]()
Please Login or Register to view this content.
I've googled a little bit and found this piece of code:
but I have no idea how to check the 'pagenumber' of respective shape.![]()
Please Login or Register to view this content.
Moreover I also tried to use anchor:
But this is also doesn't work...![]()
Please Login or Register to view this content.
To sum up:
I would like to delete all pictures from all pages (above routines do the job) and add new picture at the same coordinates on the same pages.
I would REALLY appreciate your any help!![]()
Bookmarks