On the Developer tab, click the Visual Basic button in the Code group. A Microsoft Visual Basic for Application window will open.
These reusable shortcuts handle pasting, navigation, cleanup, indexing, and timestamps from any standard Excel workbook.
VBA may have a bad reputation, but it's still one of the most effective ways to automate repetitive actions in standard XLSX workbooks.