L
Latha
Thanks for that Doug. I tried that but an error 'Compile
error: Method or data member not found' occured
at 'RecordCount' of "For j = 1 To
source.MailMerge.DataSource.RecordCount"
error: Method or data member not found' occured
at 'RecordCount' of "For j = 1 To
source.MailMerge.DataSource.RecordCount"
("c:\bookmarks.txt", "bookmarkNames",-----Original Message-----
The following might do what you want:
' Throwaway Macro created by Doug Robbins to "preserve" hyperlinks to
bookmarks during a MailMerge
'
Dim abm As Bookmark, bmrange As Range, i As Long, Result As Document, j As
Long, k As Long, linkrange As Range, linktarget As String
Dim source As Document
Set source = ActiveDocument
i = 1
For j = 1 To source.MailMerge.DataSource.RecordCount
For Each abm In ActiveDocument.Range.Bookmarks
System.PrivateProfileString