I am using regular expressions in a file that I have been using for a few years, and today I am suddenly getting a "Permission denied" error on this line:
I have not changed any code in the file or settings in Excel. This occurred the first time I ran this following a reboot, which was required to implement an update to Malwarebytes. As far as I can tell there were no Windows or Microsoft Office updates applied during this reboot.
I searched extensively and this problem seems to have occurred in the past following a Windows security patch, but I could not find anything more recent than about three years old.
EDIT: I changed to early binding with a reference to the RegExp library and get the same error when instantiating the object:
pderror.jpg
pdcode.JPG
Bookmarks