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

December 2016



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 :

This document entitled « Excel/VBA - A macro change page in a Word document » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.