I'm trying to create a configurable table who's row and column headers are dependant if a tick box is clicked.

i have a 10 tick boxes which are all different tests to perform on a circuit board and also 3 tick boxes which are 3 different voltages. The tests to perform should be row headings of a table and the 3 voltages should be headings of columns . For example if 5 of the "tests to perform" tick boxes are ticked and 2 of the voltage tick boxes are ticked, a table with 2 column headings and 5 row heading should be created. The headings should be the name of the tick boxes.

This is my first venture into macros so any advice or places to research would be greatly appreciated.