populargerma.blogg.se

Change document size in word 2003
Change document size in word 2003











change document size in word 2003

The Start and End properties return or set the starting and ending character positions of the Range object. The Start, End and StoryType properties uniquely identify a Range object. However, unlike a bookmark, a Range object only exists while the procedure that defined it is running. A Range object can be as small as the insertion point or as large as the entire document. Similar to the way bookmarks are used in a document, Range objects are used in Visual Basic procedures to identify specific portions of a document. Each Range object is defined by a starting and ending character position. After the Range object is identified, methods and properties of the Range object can be applied in order to modify the contents of the range.Ī Range object refers to a contiguous area in a document. The portion of the document can be represented by a Range object. For example, you may want to write a macro that locates a word or phrase within a portion of a document. Start:=ActiveDocument.Paragraphs(2).Range.Start, _Įnd:=ActiveDocument.Paragraphs(4).Range.End)Ī common task when using Visual Basic is to specify an area in a document and then do something with it, such as insert text or apply formatting. The following example returns a Range object that refers to the second through fourth paragraphs in the active document Set aRange = ActiveDocument.Paragraphs(1).Range The following example returns a Range object that refers to the first paragraph in the active document. The Range property applies to many objects (for example, Paragraph, Bookmark, and Cell). Use the Range property to return a Range object defined by the beginning and end of another object. Set myRange = ActiveDocument.Range(Start:=0, End:=10) The following example returns a Range object that refers to the first 10 characters in the active document. Use the Range method to return a Range object defined by the given starting and ending character positions.

change document size in word 2003

You can also define multiple ranges in a document, while there can be only one selection per pane.

change document size in word 2003

That is, you can define and manipulate a range without changing the selection. Note Range objects are independent of the selection. Represents a contiguous area in a document.













Change document size in word 2003