It's far simpler to start of with the max sets, then just delete the unwanted ones than to add them programmatically. Something could be done programmatically using a table (see, for example,
https://www.msofficeforums.com/word-...html#post87989). As you'll see, the code for that is quite complex.