- Open the Visual Basic Editor via Tools → Macro → Visual Basic Editor.
- Insert a new module via Insert → Module.
- Paste this code into the module, then run it via Run → Run Macro.
- The macro will tack on a new slide at the end, showing each layout’s name and the slide numbers where it’s used.