I am using a function I found online that uses regex in VBA to extract cell references from a string. Usually when I run the following code, it is very fast (~.1sec). Sometimes, however, it takes anywhere from 1.0 to 1.5 seconds to run. When it does this, I can run the code over and over again and it always takes this long. Then, randomly, at some point it starts running fast again. I'm not sure if this has something to do with the regex pattern, or with how the regex object is created or handled, or something completely different? I'm really at a loss on this one. Any ideas?? Thank you!
Please Login or Register to view this content.
Bookmarks