On the Developer tab, click the Visual Basic button in the Code group. A Microsoft Visual Basic for Application window will open.
VBA may have a bad reputation, but it's still one of the most effective ways to automate repetitive actions in standard XLSX ...