Current page number

M

Mario

How can I define a variable (zz) equal to the page number
of the current page of the document in VBA. I already in
the macro place the cursor on a specific page and now I
need that the macro determine the page number to compare
it to no if it's a odd or event page with Mod fonction.

Thanks for help

Mario
 
C

Chad DeMeyer

Selection.Information(wdActiveEndAdjustedPageNumber) 'returns the page
number as specified by page numbering options for section
Selection.Information(wdActiveEndPageNumber) 'returns the
page number relative to start of document

Regards,
Chad
 
M

Mario

Thanks for your help, that working the way I need

Thanks again

Mario
-----Original Message-----
Selection.Information
(wdActiveEndAdjustedPageNumber) 'returns the page
number as specified by page numbering options for section
Selection.Information
(wdActiveEndPageNumber) 'returns the
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top