![]() |
|
#1
|
||||
|
||||
![]() The Find expression is having issues with strings like ([ABC]). It's fine with strings like ([ABC]x), however. Change the Find expression to: .Text = "\(\[[!\(\[]@\]*\)" and the code should run to completion in less than 1 minute.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Indeed: it works! Thank you for this code.
This is the first part of the job: in fact, I don't want to copy the reference as they appear but I use a dictionnary to put complete reference in the footnotes; this is not complicated, but the thing is that I must format the reference inside the footnote... I've started to work on that, but before continuing, I am going to keep on looking for the portion of code that doesn't work, in order to understant better VBA, and to study the .Find method. If anyone can help for that, by providing sources, sites, books reference or answering questions... ![]() In any case, I acknowledge participants for their help! ![]() |
#3
|
||||
|
||||
![]() Quote:
Given that your opening statements was "Indeed: it works!", I have no idea what you mean by "the portion of code that doesn't work".
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
regex, replace |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
abdan | Word VBA | 3 | 01-18-2019 09:38 PM |
How to compare 2 Excel sheets for 100+ matches? | dylansmith | Excel | 5 | 05-22-2017 09:09 PM |
Macro help regex | subspace3 | Word VBA | 1 | 10-15-2014 09:53 AM |
![]() |
gasyoun | Word VBA | 9 | 04-12-2013 04:15 PM |
Regex in Word: Replaced strings are in disorder | chgeiselmann | Word | 0 | 04-26-2009 11:33 AM |