By: Shamima Sultana

In reply to joe diver.

Hello Joe Diver,

You’ll need to open the Visual Basic for Applications (VBA) editor in Excel. Here’s how:

1. In Excel, press Alt + F11 → this will bring up the coding screen (VBA editor).
2. In the VBA editor, go to Insert > Module and paste the code there.
3. Close the editor and run the macro from Developer > Macros in Excel.

If the Developer tab isn’t visible, you can enable it from File > Options > Customize Ribbon > check Developer.
You can explore this article: Learn Excel Macros & VBA Programming (Free Tutorial & 50++ Examples)

Regards,
ExcelDemy