![]() |
#2
|
|||
|
|||
![]()
Yes, it is possible. What have you tried? This is not a complementary code writing service. We are here to help you write your code. Some people write books for a living, others write code
![]() You would start with a macro that "finds" the desired strings. For example your find text would be: .Text = "U [0-9]{4}.[0-9]{3} [HV" & ChrW(216) & "]" When that text is found, you would insert an index entry: ActiveDocument.Indexes.MarkEntry "Found Range", "Found Text" Collapse and move the range passed the entry and loop to find next instance of text. There are plenty of examples of using VBA to find text. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
hcl75 | Word VBA | 3 | 10-08-2022 02:39 PM |
![]() |
MyUserName123 | Word VBA | 10 | 07-07-2020 07:59 PM |
Automatic supplier contact detection at Outlook and Lync | LordLA | Outlook | 0 | 07-30-2015 02:40 AM |
Macro to mark non-coloured/non-highlighted text as hidden | PeterB | Word | 0 | 10-28-2009 07:54 AM |
automatic requirement numbering with change detection | stijnos | Word | 0 | 05-13-2009 12:10 AM |