![]() |
|
#1
|
|||
|
|||
![]() Which above macro? There are three: Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oRng As Word.Range Set oRng = ActiveDocument.Range With oRng.Find .Text = "Ref." While .Execute Do While oRng.Characters.Last.Next Like "[0-9]" _ And oRng.Characters.Last.Next.Font.Superscript oRng.MoveEnd wdCharacter, 1 Loop If Len(oRng.Text) > 4 Then oRng.Select 'Do something with the found range. End If oRng.Collapse wdCollapseEnd Wend End With lbl_Exit: Exit Sub End Sub |
![]() |
Tags |
find, numbers, superscript |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and replace BETWEEN numbers | WordUser2015 | Word | 4 | 12-19-2014 02:09 PM |
Show Page Numbers by default | zamani_2012 | Word | 1 | 06-09-2014 06:09 AM |
Macro to find text only footnote numbers | TimFromPhx | Word VBA | 7 | 04-10-2014 07:05 PM |
Find and replace page numbers in body of text | tollanarama | Word | 3 | 02-13-2011 06:00 AM |
![]() |
tollanarama | Word | 4 | 01-25-2011 02:19 AM |