问题
Using Word 2016, is there a way through VBA to add a new entry to a repeating section content control? I have my repeating section content control set up, and it is the only content control in the document (there is actually no other content in the document). I want to add a new repeated row, to this content control.
I have tried recording a macro to see what it spits out but nothing was recorded when I added a new row manually. Maybe at this point I should realize that I am SOL, but I was wondering if there was some way that I could complete this that was not being recognized by my recorded macro.
The application: I want to print out labels onto a sheet of label stock, there are 10 labels on the label stock but not every print uses all 10 labels, so I want to be able to decide how many labels are printed and what is the starting location of the print on the label stock. The information that is going onto the labels is already being input into a form on Excel which can then open up the word document and set the content controls based on the excel input (this part is already figured out)
来源:https://stackoverflow.com/questions/44571084/word-vba-add-row-to-repeating-section-content-control