How to create macros when there are minor variations in menu commands

Hello,
I created a Numbers Group (macros work in Numbers).
One macro creates a shortcut when I highlight a row and want to delete using the select in menu action: Table ➤ delete row.
I realized today that with this macro, I could not delete highlight and delete multiple ****rows because the Numbers Menu command changes from Table ➤ delete row to Table ➤ delete rows (plural) when multiple rows are highlighted.
I can obviously create another macro and shortcut for multiple rows, but is there an easier way?
thanks very much for your time and help

The Select Menu action accepts regex is the name starts with an ^. So:

^Delete Rows?

Should do the trick.

5 Likes

thanks very much Peter