Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-18-2016, 06:28 AM
tbrookes tbrookes is offline Add new row to protected form including content controls via Command Button Windows 7 64bit Add new row to protected form including content controls via Command Button Office 2010 64bit
Novice
Add new row to protected form including content controls via Command Button
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Form with content controls - expands but at the bottom of the form louiseword Word 3 05-27-2016 12:47 AM
Creating and using a template (online form with content controls) Esme Word 2 10-17-2014 07:18 AM
Add new row to protected form including content controls via Command Button Updating an old form with Content Controls Something Anon Word 4 03-26-2014 03:53 PM
Add new row to protected form including content controls via Command Button Command Button will not work when document is protected brockjensen Word 1 11-02-2012 06:59 PM
Content Controls Form Programming beachdog Word VBA 4 09-20-2011 10:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft