View Single Post
 
Old 06-23-2021, 05:46 PM
Mark6455 Mark6455 is offline Windows 10 Office 2019
Novice
 
Join Date: Jun 2021
Posts: 7
Mark6455 is on a distinguished road
Default

The document has a form for data entry. When you click on the button, it adds one more table for an additional entry. What is happening is when you hit the button again, instead of adding just one more table, it copies all the existing tables and adds one more. So after you have 2 table entries and hit the button to add another one, it now adds the 2 existing tables plus one more making it 5 tables instead of 3. The VBA is apparently copying all existing tables as you add them instead of just adding one more each click. Note though that if you run the VBA in Word 2016 or lower, it works fine. I am using Word 2019.
Reply With Quote