Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-09-2019, 06:25 AM
gmayor's Avatar
gmayor gmayor is offline Help with using VBA to add a row to a table in a protected document Windows 10 Help with using VBA to add a row to a table in a protected document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
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 ofgmayor has much to be proud of
Default

It is not helped by the use of two tables and a mixture of content controls and form fields. Frankly it would be better if you used form fields throughout - see attached. The code will fire when you click out of the last content control.

Normally I would recommend locking the controls, as some fool will accidentally delete them, so I have only locked the controls in the table. The newly added ones are not locked while testing, but you can easily fix that in the code by releasing the three lines of code that lock them.

You may find Insert Content Control Add-In useful.
Attached Files
File Type: docm Photo Log.docm (53.0 KB, 8 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with using VBA to add a row to a table in a protected document Use Macros to add a new row in protected document cepdance Word VBA 6 01-04-2017 08:18 AM
Help with using VBA to add a row to a table in a protected document Macro to replace Image, Numbers in Table and in multiple protected word document balaji Word VBA 10 03-24-2016 02:11 AM
Help with using VBA to add a row to a table in a protected document Protecting a document; allow sections to be edited - spacing in table cells when protected dwciardi Word 3 09-30-2015 01:03 PM
Autoexpand Table on Protected Sheet Catalin.B Excel 0 09-07-2014 07:03 AM
Using bookmarks in a protected document Bill Stemp Word 0 10-16-2010 06:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:11 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