Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2017, 10:54 PM
baes10 baes10 is offline Add row with content controls in word Windows 7 64bit Add row with content controls in word Office 2007
Advanced Beginner
Add row with content controls in word
 
Join Date: Dec 2017
Posts: 33
baes10 is on a distinguished road
Default Add row with content controls in word


Hello, I'm struggling with this vba to add rows with content controls. I like how it enables the user to add rows anywhere on the table. There are times when it would add the rows without the content controls. I would then have to delete the rows and keep running the macro until it adds the row with the content controls. I hope that makes sense. Could you please take a a look at my InsertRowWithContent vba? Perhaps there is something missing which is causing this malfunction. Help is greatly appreciated.
Attached Files
File Type: docm Skin Report Template.docm (170.6 KB, 8 views)
Reply With Quote
  #2  
Old 12-21-2017, 01:54 AM
gmayor's Avatar
gmayor gmayor is offline Add row with content controls in word Windows 10 Add row with content controls in word Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I suspect the problem has more to do with your assorted delete macros.
What EXACTLY do you intend to happen when you run either of these macros, and on which table?
Your delete macro is programmed to process all tables, so clearly that is likely to cause problems, and it deletes all the rows that contain unfilled controls, making it difficult to restore if you run it and the first row of the main table is unfilled.

I have made some changes to your macros, which should now work as I imagine they were intended to work.
Attached Files
File Type: dotm Skin Report Template-2.dotm (168.7 KB, 24 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 12-21-2017, 10:38 AM
baes10 baes10 is offline Add row with content controls in word Windows 7 64bit Add row with content controls in word Office 2007
Advanced Beginner
Add row with content controls in word
 
Join Date: Dec 2017
Posts: 33
baes10 is on a distinguished road
Default

I can't tell you how thankful I am! The add row with content works perfectly with no blank rows! You and your team of helpers are truly awesome. Thank you!!!!!! Merry Christmas!
Steve
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to save docx to doc that checks compatibility and converts content controls to static content. staicumihai Word VBA 4 10-12-2016 08:23 PM
Add row with content controls in word Word XML Content Controls for custom XML output Daedalus Word 1 11-26-2015 01:38 PM
More than one content controls in a word document lucky16 Word VBA 6 07-10-2014 08:34 AM
How to use onchange event for content controls in word lucky16 Word VBA 7 06-06-2014 05:05 AM
Add row with content controls in word MS Word 2010 Content Controls and PDF Conversion. MaxInCO Word 3 02-13-2014 12:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft