![]() |
|
#1
|
||||
|
||||
![]()
Select one instance of the table along with a paragraph above and below that table and then go to the Developer Tab and click on the Repeating Section Content Control button.
You can then use the plus button on the bottom right to add more sections. You can right click to add or remove sections. You can also add a macro to ask for a count and do them all at once. Code:
Sub RepeatMe() Dim aCC As ContentControl, iCount As Integer Set aCC = ActiveDocument.SelectContentControlsByTitle("Repeater")(1) iCount = InputBox("How many?", , 5) With aCC.RepeatingSectionItems If iCount > .Count Then Do While .Count < iCount .Item(.Count).InsertItemAfter Loop ElseIf .Count > iCount Then Do While .Count > iCount .Item(.Count).Delete Loop End If End With End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Thank you for the reply. I apologize though, I am a newbie. I am currently using legacy forms, will using content controls muddy up my form and possibly cause issues when users try to fill out this form? This form will be distributed to my team and they will use this when they need it.
Edit: I just realized that I left out a piece of information that may change your answer. I want to lock this fillable form so that the user cannot modify anything other than the fields and dropdowns I have provided. So they would need to be able add tables either by clicking the quantity of tables in a dropdown or if they could have access to a button such as + or add, that would work too. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a drop down list that if (a) is selected then (x) happens | mummarochy | Word | 1 | 06-11-2018 10:07 PM |
Show/ hide three sections of a cover page based on the option selected in the drop down list | raizadamili | Word | 3 | 04-18-2018 06:56 AM |
Drop down box list based on response to another drop down box | Phideaux | Excel | 16 | 04-13-2018 03:07 AM |
numbered list: bold when selected and fade when selected following number | village | PowerPoint | 0 | 11-08-2017 10:43 AM |
Need macro to fill data from different sheets based on selected item from drop down | skorasika | Excel Programming | 1 | 03-13-2015 11:25 AM |