Re: VBA word Table Page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi =?Utf-8?B?UmFt?=,

> Thanks for your help. I Actually, I tried using Selection.GoTo
> What:=wdGoToPage, Which:=wdGoToNext with a For loop. But somehow its not
> going to next page. Its staying in the second page but its pasting the 3rd,
> 4th pages first cell contents in second page first cell. I will try with the
> code that you gave me now.
>
Be careful about resetting the RANGE. The code I gave you only uses Selection
to get to a particular page. Then it works relative to a range. So you'll need
to be sure the range is referring to the correct page. From the sound of it,
you need to make sure this are reset when you move to a new page

Set rngPg2 = ActiveDocument.Bookmarks("\Page").Range

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

.


Quantcast