A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
EXcel 2003 for me.
I pasted your code into a new empty module.
Method 'VBE' of object 'Application' failed.
In excel 2003 while on a worksheet i.e. not in VB editor try this
Tools | Options | Security tab | Macro Security | Trusted Publishers tab and Check 'Trust access to visual basic project' and then try the code again.