SmartOffice - Bookmarks
Indsætter værdi i bogmærke, og gendanner bogmærket.

Eksempel 1
Public Sub SetBookmarkAgain(ByRef sName As String, _
ByRef sContents As String)
'Flemming Vadet, Maj 2000, fv@smartoffice.dk
'Finder bogmærket "sName" - indsætter i og gendanner bogmærket
Dim rBookmark As Range
If ActiveDocument.Bookmarks.Exists(sName) Then
Set rBookmark = ActiveDocument.Bookmarks(sName).Range
rBookmark.Text = sContents
rBookmark.Bookmarks.Add sName
End If
End Sub
|