Moving cursor to bookmark on open using templates
my client using templates bookmarks , needs move cursor first bookmark when word open new document.
is possible?
you use code like:
private sub document_new()
activedocument.range.bookmarks
if .count > 0 .item(1).range.select
end with
end sub
private sub document_open()
activedocument.range.bookmarks
if .count > 0 .item(1).range.select
end with
end sub
in template's 'thisdocument' code module. second sub needed if want same behaviour existing documents.
cheers
paul edstein
[ms mvp - word]
Microsoft Office > Word IT Pro Discussions
Comments
Post a Comment