Word Vba Add Row to Repeating Section Content Control

时间秒杀一切 提交于 2020-01-06 05:17:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!