![]() |
|
#1
|
||||
|
||||
![]()
You could do that with a macro like:
Code:
Sub Demo() Application.ScreenUpdating = False Dim i As Long With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "<img id=" & Chr(34) & "img001" & Chr(34) & " src=" & Chr(34) & Chr(34) & "/>" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Execute End With Do While .Find.Found i = i + 1 .Start = .Start + 12 .End = .Start + 3 .Text = Format(i, "000") .Collapse wdCollapseEnd .Find.Execute Loop End With Application.ScreenUpdating = True MsgBox i & " tags found." End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Generate Folder | streng | Excel | 8 | 07-23-2025 11:13 PM |
![]() |
sbianco | Word | 8 | 09-22-2012 06:54 AM |
Viewing Bookmark Tags | namedujour | Word | 2 | 08-13-2012 09:02 PM |
![]() |
Ulodesk | Forum Support | 1 | 07-12-2011 07:54 AM |
Generate tree structure, tool? | Troddel | PowerPoint | 0 | 10-13-2010 11:41 PM |