Solved

Navigating a word document

Posted on 2014-04-10
2
290 Views
Last Modified: 2014-04-10
I have a Word document which is used as a quote template. It is 6 pages and page 3 is blank. This page is used to insert tables containing qty, par number, description, pricing and so on. I was wondering is it possible to navigate to this page or make this page the selection without using a bookmark?
0
Comment
Question by:Basicfarmer
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39992248
Hi,

pls try
'wdGoToPage = 1
'wdGoToNext = 2
oword.Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="3"

Open in new window

Regards
0
 

Author Closing Comment

by:Basicfarmer
ID: 39992436
That worked great. below is the .Net version.
oWord.Selection.GoTo(Word.WdGoToItem.wdGoToPage, Name:="3")
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now