Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2020, 09:19 AM
shanerolle shanerolle is offline Auto Create/Format a Word Document based on Check Boxes Windows 10 Auto Create/Format a Word Document based on Check Boxes Office 2019
Novice
Auto Create/Format a Word Document based on Check Boxes
 
Join Date: Apr 2020
Posts: 10
shanerolle is on a distinguished road
Default

This helped quite a bit! I think I came up with a bit of a different solution and instead just figured out how to delete the entirety of column 1 instead of the individual check boxes, but I appreciate the help!



I have yet another question (I apologize for so many, but am glad you are helping because I feel like I am learning a lot). So I have attached a sample notebook in order to better explain this one. I have been asked if is possible that I add another checkbox that if check, would delete all of the contents of a section, leave the header, and display "Not applicable".

In the example document, currently they would have to select each checkbox in column 1 to remove a row based on what they do and do not what in the document. However, I was wondering if there was a way that they could select one checkbox in order to remove everything in the section below the header, but leave the header behind. They also want it to display "Not Applicable" if they were to select that checkbox.

Based on the sample document, I was hoping there is a way to select one checkbox in order to delete everything below the "Sample Header" sections, but still display the "Not Applicable" option. Even if there were 2 options, one to delete everything below the header, and one to display not applicable, that would be much better.

The current issue is that there might be 15 different rows underneath the header, and they do not want to have to select 15 different checkboxes if the entire section is not needed, they would rather just select 1-2 checkboxes in order to delete the contents, leave the header, and display not applicable.

Hopefully that helped to explain what I am trying to do, and I apologize if I repeated myself a lot. I also included the code I am currently using in the document, obviously if I need to add second column in order to have this additional option, I would need to delete rows 1 and 2, but that is the code I currently have.

Thank you once again, and I apologize for all of the questions!!
Attached Files
File Type: docm Sample Document for Help.docm (19.1 KB, 28 views)
Reply With Quote
  #2  
Old 04-28-2020, 09:29 PM
Guessed's Avatar
Guessed Guessed is offline Auto Create/Format a Word Document based on Check Boxes Windows 10 Auto Create/Format a Word Document based on Check Boxes Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Paul, I agree that hiding content also requires option settings but IMO it is far more useful and easy enough to include in the macro or a startup macro. I would be recommending moving the macro to run automatically on exiting the CC to allow the following functionality that the OP asked for.
Quote:
Originally Posted by shanerolle View Post
In the example document, currently they would have to select each checkbox in column 1 to remove a row based on what they do and do not what in the document. However, I was wondering if there was a way that they could select one checkbox in order to remove everything in the section below the header, but leave the header behind. They also want it to display "Not Applicable" if they were to select that checkbox.
Leaving the macro to run only when the form is complete makes that request pointless.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-populate Text Field When I Click Check Boxes LobaBlanca Word VBA 2 03-14-2019 08:10 PM
Print documents based on boxes checked in word document eshiffman Word VBA 8 04-05-2018 06:26 AM
Need to create document that will auto insert text based on parameters parisfranco Word 13 07-25-2017 03:21 PM
Word document with check boxes JohnW Word 3 12-01-2016 07:43 AM
Table - Check Boxes - Create Select All lajohn1963 Word Tables 2 09-25-2010 11:18 AM

Other Forums: Access Forums

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