What you need to do is
- go ot the VBIDE
- menu Tools>references
- scroll down until you find the item marked Microsoft Scripting Runtime and check that
- then scroll down/up until you find the item marked Microsoft VBScript Regular Expresssions, and check that
- exit and try again