Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cycle Pages

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
How can I cycle through all the pages in a word document? I ask this as I want to apply functions to pages on a page by page basis.
 
Hi,
"How can I cycle through all the pages in a word document?"
Code:
    Application.Browser.Next
"...I want to apply functions to pages on a page by page basis."
Code:
Public nPage as integer
Sub NextPage
  Application.Browser.Next
  nPage = nPage + 1
  Select Case nPage
    Case 0
      n = FunctionPage1()
    Case 1
      n = FunctionPage2()
    ....
  End Select
End Sub
???

Hope this helps :)


Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884

Skip,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top