Huston we have yet another problem!
We are seeing multiple reports that a recent update has broken, at the very least VBScript.RegExp, resulting in the following error:
Program: …
File: g:\vba\src\65_VC8\VBA\rt\rtre.cxx
Line: 946
Expression: replaceVar.vt == VT_BSTR
For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application – JIT must be enabled) Microsoft Visual C++ Runtime Library
when I click on a button to open a form no error or debug just as below, Abort just freezes have to do a full close X, Ignore just keeps flashing the same message.
Retry sometime continues on normally but no info. this is in a…
Now that I Googled the subject, I see that Mike Wolfe has written an article on the issue:

and has identified the root cause as being the update to Access version 2508!
I’m not going to double up on Mike’s article. So, go look it over as he offers a very simple workaround to this latest Microsoft bug at the end of his article!

Just encountered this ugly bug today, after upgrading to Access version 2508.
Mike Wolf’s solution described here: https://nolongerset.com/bug-assertion-failed-regexp/ allow me to resolve the issue. Thanks
Indeed, that’s the same link I provided in my posting. Simple solution!
Hi Daniel
I have used this article to pose an idea related to Microsoft’s intention to disable VBScript.
1. What stops me from making a copy of the VBScript Runtime DLL and after Microsoft remove it from my system, to re-instate it?
2. Microsoft have PROMISED to stop updating my Win10 in October – which is prior to VBScript deprecation. With that in mind, my VBScript on Win 10 device remains intact?
I would appreciate your thoughts on the above
Regards
It might be possible, but impossible to guarantee it will work until MS does whatever they’re going to do! The problem is we just don’t know anything. Microsoft, per the usual, has not shared any REAL information with users. Since there are a few alternative for RegExp and Collections, I’d recommend implementing them (doesn’t have to be MS RegExp class), but the bigger issue for FSO still remains.
Also note, Microsoft just announce that they have included, as of Version 2508, RegExp Classes in VBA to replace what is being deprecated. Learn more at:
Microsoft Adds Native RegExp to VBA Ahead of VBScript Deprecation