View Single Post
 
Old 06-18-2016, 06:28 AM
tbrookes tbrookes is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jun 2016
Posts: 3
tbrookes is on a distinguished road
Default Add new row to protected form including content controls via Command Button

Hello
I'm very new to this - I have a number of tables in my protected form all with content controls including date pickers.

What I want to do is have a button below each table which says "Add Row". When a user clicks it, a macro will run that adds a new row to the table, complete with the content controls from the row above (not the data they've entered, just the fields). I've worked out how to create the button and have the below code to add a new row but I don't know how to change it so that it copies the content controls as well.


ActiveDocument.Tables(9).Select
Selection.InsertRowsBelow 1

I have looked in other threads but couldn't find anything that would work, so would really appreciate any advice.
Thanks in advance
Reply With Quote