View Single Post
 
Old 11-19-2014, 02:52 PM
ronmayerle ronmayerle is offline Windows 8 Office 2007
Novice
 
Join Date: Nov 2014
Posts: 2
ronmayerle is on a distinguished road
Default VBA code to enable Regular Expression

I have been writing relatively complex macros with Word 2007 VBA using Regular Expressions. Because I am relatively new to macros, my code has corrupted the Normal Folder numerous times. Each time, I delete the Normal Folder and then restart Word...which generates a new and uncorrupted Normal Folder. But each time I have to enable RegExp again by going to the VBA toolbar and clicking Tools>References>Regular Expressions 5.5. Is there a line of code that I insert at the start of a macro to do this automatically?

Thanks in Advance.
Reply With Quote