View Single Post
 
Old 12-31-2014, 07:19 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Try something like:

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim lngIndex As Long
Dim oBM As Bookmark
Dim oRng As Range
Dim strName As String
For lngIndex = ActiveDocument.Bookmarks.Count To 1 Step -1
Set oBM = ActiveDocument.Bookmarks(lngIndex)
strName = oBM.Name
Set oRng = oBM.Range
oRng.Text = oBM.Name
ActiveDocument.Bookmarks.Add strName, oRng
Next
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote