To check if email format is correct
- Copy the code below.
- Open any workbook.
- Press Alt + F11 to open the Visual Basic Editor (VBE).
- Press Ctrl + R to show the Project Explorer.
- Right-click desired file on left (in bold).
- From the Menu, choose Insert-Module.
- Paste the code into the right-hand code window.
- Close the VBE, save the file as VBA Enabled WorkBook (xlsm) for Excel 2010 and newer