wdGoToBookmark: Navigate to a bookmark in the active Word document.

Description Usage Arguments Examples

Description

Looks up the bookmark in the bookmarks collection and goes to it.

Usage

1
wdGoToBookmark(bookmark, wdapp = .R2wd)

Arguments

bookmark

the name of the bookmark.

wdapp

the handle to the Word application (usually not needed).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
wdGet()
## the following command starts a new section and adds a bookmark.
wdSection("This a new section",label="sec1")
## now we add some text
wdBody("R2wd is a package to write Word documents from R")
## we can now go back to the section header
wdGoToBookmark("sec1")

## End(Not run)

R2wd documentation built on May 2, 2019, 8:54 a.m.