Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-14-2016, 05:37 PM
macropod's Avatar
macropod macropod is offline Problems Copy table content and reset contentControls Windows 7 64bit Problems Copy table content and reset contentControls Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your problem description and code suggests you're using a mix of ActiveX controls, content controls and formfields. You really should only use one kind of control. Content controls and formfields, especially, weren't designed to work together and you can run into problems when doing so. ActiveX controls and content controls don't work on Macs, so that's no good if the document needs to be used on a Mac.

As for the problem of the table being copied several times, I note that your copyTableStructure macro includes a maxCopies value and that your calling subs each supply something other than 1 (99, actually ...).

For code to conditionally add rows to a table, clearing & resetting content controls in the new row, see:
https://www.msofficeforums.com/word-...html#post87989
https://www.msofficeforums.com/word-...html#post38461
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveDocument.ContentControls(ID) not working Tejas.T Word VBA 3 03-09-2015 06:50 PM
Using "reset" jumps content from the footnote to the headline every time WasThatNecessary PowerPoint 0 10-24-2014 04:49 AM
Problems Copy table content and reset contentControls copy content of a table inside email to excel sheet megatronixs Outlook 17 10-10-2014 05:20 AM
Problems Copy table content and reset contentControls Copy table content between documents mcb09 Word VBA 14 06-12-2014 09:33 PM
Copy content control entries to next table next page Mel_Herndon Word VBA 2 05-22-2014 05:07 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:07 AM.


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