Action group: Word
The action creates a bookmark in the specified place in a Word-document.
Specify the Word-document, the name of the new bookmark, the place of addition, the text relative to which the bookmark will be added, and the number of the match of this text in the document. It is also possible to specify the page number where the addition will be made.
Parameter | Description |
---|---|
Context | The context of an open Word-document. You can open a Word document using the "Open document" action (the "Word" action group). |
Bookmark name | The name of the new bookmark. Name restrictions: the document must not contain a bookmark with the same name; does not exceed 40 characters; begins with a letter; there are no spaces. |
Page number | The page number of the document where the new bookmark will be set. If the parameter is not filled in, the text will be searched throughout the entire document. |
Place of addition | The location of the bookmark relative to the specified text. There are 3 options available: Before text, After text, Insert text into the bookmark. When you select "Insert text into a bookmark", the specified text will be the bookmark. |
Text | The text in the document relative to which the new bookmark will be set. |
Match number of the text | The number of the text match, relative to which the bookmark will be set. The numbering starts with 1. If you need to specify the last match in the document, but the sequence number of the match is unknown, then specify -1. |
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | The Word document instance to which the action will be applied. | Robin.Word | Word context | Yes |
Bookmark name | The name of the new bookmark. Must start with a letter, have no spaces, and be no longer than 40 characters. If the document already has a bookmark with the same name, the robot will return an error. | Robin.String | Yes | |
Page number | The page number of the Word document on which the new bookmark will be set. If the field is not filled in, the search for the insertion point of the bookmark will be carried out throughout the document. | Robin.Numeric | No | |
Text | The text in the Word document to which the bookmark will be added. | Robin.String | Yes | |
Place of addition | The location of the bookmark relative to the specified text. | Robin.String | Yes | |
Match number of the text | The ordinal number of the match of the specified text in the Word document. Numbering starts at 1. To find the last match, you must specify -1. | Robin.Numeric | Yes |
More about bookmarks in Word: Bookmarks in Word
You have a Word-document. Create a new bookmark after the text "Кавказский пленник".
Document:
Use the "Open document", "Create bookmark", "Save as", "Close document" actions.
The program robot completed successfully. The new bookmark was created.
Bookmark names in the Word-document: