johndavidson
06-28-2013, 01:08 AM
I have VBA code running under Word 2003 that includes the following wildcard search:
.Text = "(*^11){2,}"
.Replacement.Text = "\1"
.Forward = True
.Wrap = wdFindStop
.MatchWildcards = True
It takes ages to run. Even if I do the search as a regular Word dialog box search on a 10,000 character document, pasting in the find and research fields, it takes 7 secs on a 10,000 word doc on an i7 64-bit computer. It is the searching that takes the time. It even takes ages to find nothing at all!
Does anyone know why it is taking so long and/or can think of an alternative way of presenting the search?
Thanks
.Text = "(*^11){2,}"
.Replacement.Text = "\1"
.Forward = True
.Wrap = wdFindStop
.MatchWildcards = True
It takes ages to run. Even if I do the search as a regular Word dialog box search on a 10,000 character document, pasting in the find and research fields, it takes 7 secs on a 10,000 word doc on an i7 64-bit computer. It is the searching that takes the time. It even takes ages to find nothing at all!
Does anyone know why it is taking so long and/or can think of an alternative way of presenting the search?
Thanks