W
Word.user
I want to insert a bookmark with a range of lets say 3,4 blank lines, when I
open a document. And the bookmark text as null.
I worte the following code, but it does not work cause line 2 expects an
object and I dont have any.
I am going to open a blank document and insert a bookmark with 4 blank lines.
How can I acheive this....
[
]
My Code:
Set BMRange = ActiveDocument.Bookmarks("start").Range
ActiveDocument.Bookmarks("start").Range.Text = Chr(13) & Chr(13)
ActiveDocument.Bookmarks("start").Range.Text = " "
ActiveDocument.Bookmarks.Add "start", BMRange
open a document. And the bookmark text as null.
I worte the following code, but it does not work cause line 2 expects an
object and I dont have any.
I am going to open a blank document and insert a bookmark with 4 blank lines.
How can I acheive this....
[
]
My Code:
Set BMRange = ActiveDocument.Bookmarks("start").Range
ActiveDocument.Bookmarks("start").Range.Text = Chr(13) & Chr(13)
ActiveDocument.Bookmarks("start").Range.Text = " "
ActiveDocument.Bookmarks.Add "start", BMRange