Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-16-2021, 11:24 PM
gmayor's Avatar
gmayor gmayor is offline Move table using VBA Windows 10 Move table using VBA Office 2019
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

To do at least some of what you require you need to save the document as a template (see attached) and create new documents from it, otherwise automating from a save event will make an unholy mess of the original.
When you first save the created document it will copy the table to the start as requested, leaving the original in situ.

Because of the way you have formatted the document, if you hide the check boxes, the general format of the document is lost as space changes to accommodate the hidden controls. This is a particular issue with the tables that has no simple answer.

If you really must have the various unchecked options hidden, I wouldn't have them in the document in the first place. I would instead employ a userform - Create a userform to make the selections and write the appropriate entries to content controls, but that would mean a complete redesign and a steep learning curve to create the form.

If that is too onerous, I would suggest not attempting to hide them. In addition to the formatting problems you will encounter, unless you submit the form as PDF, hidden texts are easily unhidden, which rather defeats the point of hiding them.
Attached Files
File Type: zip XX_VISA_Clearance Approved_12.14.21_Test-1.zip (51.9 KB, 13 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
Move table using VBA Move entire rows from one table to another table Marcia Excel Programming 4 11-16-2021 05:24 PM
Change default move row behavior to "shift-move" JoshM Excel 2 10-05-2018 05:06 AM
Move table using VBA Move Selection to the next Column on a Page (Not a table) GuitarForLife Word VBA 7 02-09-2018 01:59 PM
Move table using VBA Move table cell contents from one table to another table or cell in same table donaldadams1951 Word VBA 4 02-04-2015 03:54 PM
Move table using VBA Move existing table captions bcarlier Word Tables 17 05-10-2014 02:36 PM

Other Forums: Access Forums

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


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