Create a new table from a button

Hi there!

Does anyone know if it’s possible to create a table from a button using formula?

I have a template that contains two tables: one that must have duplicated data and another that’s a view of an existing table. However, when duplicating a page, you can either duplicate table data, or view data, you can’t do both. My solution is to add a button to create the duplicated table after the page has been duplicated by the user… But I have no idea how to create said button.