-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi @sancarn
When I call two new regular expression library test routines RegExp in Excel 365 it causes the application to crash
If I initialize and run with VBScript.RegExp library, I get an error message like below

' Run -> message box error and crash Excel
Sub VBA_365_RegExp_test()
' RegExp in Office 365
With New RegExp
.Global = True
.IgnoreCase = True
.MultiLine = True
.pattern = "(.)(?=.*\1)"
Debug.Print .test("ss")
End With
End Sub
' Run - message box error
Sub VBA_VBScript_Regex_test()
With Interaction.CreateObject("VBScript.RegExp")
.Global = True
.IgnoreCase = True
.MultiLine = True
.pattern = "(.)(?=.*\1)"
Debug.Print .test("ss")
End With
End Sub
Can you test on your Excel VBA to see if this error occurs, I have been getting this error recently, since Office was updated, and the RegExp library was embedded directly into VBA.
Hopefully this bug will be fixed soon in the future.
Metadata
Metadata
Assignees
Labels
No labels