![]() |
|
#1
|
|||
|
|||
![]() 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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kilosub | Word VBA | 31 | 07-27-2011 01:37 PM |
Looping Question | Steve B | PowerPoint | 0 | 01-19-2011 10:44 AM |
Looping video | tomasball | PowerPoint | 0 | 10-30-2010 02:38 PM |
Unbreakable looping | Dixon | Outlook | 0 | 09-23-2009 02:10 PM |
Looping though Custom Properties in VBA | suekay | Misc | 0 | 05-19-2006 06:10 AM |