wdGoToBookmark {R2wd} | R Documentation |
Navigate to a bookmark in the active Word document.
Description
Looks up the bookmark
in the bookmarks collection and goes to it.
Usage
wdGoToBookmark(bookmark, wdapp = .R2wd)
Arguments
bookmark |
the name of the bookmark.
|
wdapp |
the handle to the Word application (usually not needed).
|
Examples
## 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)
[Package
R2wd version 1.1
Index]