Solved

Navigating a word document

Posted on 2014-04-10
2
293 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
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.

776 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