Excel/VBA - A macro change page in a Word document

April 2017



Issue


I need a macro to move to the next page in Microsoft Word document. How can this be implemented?

Solution


Try this:

Selection.GoTo What:=wdGoToPage, Which:=lNextPage  
Where lNextPage is the page number


Thanks to VBA guru for this tip.

Related


Published by deri58. Latest update on January 28, 2013 at 09:24 AM by deri58.
This document, titled "Excel/VBA - A macro change page in a Word document," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).