Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2020, 03:14 AM
Rover Rover is offline extracting specific sections into a new document Windows 7 32bit extracting specific sections into a new document Office 2010
Novice
extracting specific sections into a new document
 
Join Date: Aug 2020
Posts: 1
Rover is on a distinguished road
Default extracting specific sections into a new document

Hello,




I'm new to the forum.


I have a document that is comprised of a number of sections.


I would like the user (who will be non IT literate) to be able to select specific sections, maybe a tick box menu and if possible have the sections named something meaningful to the user.


I would then like the selection to create a new document with the selected sections in this one document.


Is this possible in part or whole?

Thank you
Reply With Quote
  #2  
Old 08-03-2020, 10:33 AM
PrincessApril PrincessApril is offline extracting specific sections into a new document Windows 10 extracting specific sections into a new document Office 2019
Competent Performer
 
Join Date: Nov 2019
Posts: 102
PrincessApril is on a distinguished road
Default

Hi Rover. It sounds like this question would be more appropriate for the Word VBA subforum. Perhaps also try posting what you have tried so far to narrow the scope of the question.

In the meantime, you could start by checking out this tutorial by Graham Mayor on selecting the text within a section.

My first thought is that you could add to that macro (perhaps even by using the macro recorder) to run the aforementioned macro, create a new doc, and paste the contents of the clipboard. You could then assign that larger macro a keyboard shortcut on the user's machine and create a clickable TOC (or if they won't know to Ctrl + click then you could create a list of bookmarks as a manual TOC). So the user would have to click the section and the hit Alt + C (or whatever you assign the larger recorded macro) to run the select/copy/paste function.

Perhaps after tinkering with that a bit, you could post your working code to the Word VBA forum.

Good luck for now!
Reply With Quote
  #3  
Old 08-03-2020, 03:59 PM
Guessed's Avatar
Guessed Guessed is offline extracting specific sections into a new document Windows 10 extracting specific sections into a new document Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

Rover

Yes it is possible and there are a few different ways to approach the problem - most involve considerable Word skills and effort to be able to implement it in a very user friendly way. You could do it with checkboxes actually in the document itself but I think the best solution may be to use a VBA UserForm in a macro enabled template (.dotm).

Do you know any VBA (the macro language in Word)? The best solutions will require you to be able to work with that.

I'm thinking the link that PrincessApril provided is not directly applicable to your question so here are a few other links that might be worth a look and show some of the options and complexity in getting to your end goal.
Using VBA to allow a checkbox to hide/show content in Microsoft Word - Stack Overflow
Can you use a Checkbox control to toggle hidden text in a Word 2010 document?
Is it possible to remove/hide text in a Word document based on checkboxes? If so, how do you do that? - Quora
How to Create a Microsoft Word Form That Auto Hides Text When Checkbox Is Checked? | It Still Works

Note that in all these links, the users are 'hiding' text rather than not putting it in the document. It is much easier to delete (or hide) content than it is to create it. Your template should contain all the possible content and the macros then hide or remove the 'not selected' content. Hiding it can be better if someone was to change their mind and want a way of getting a section back again. Deleting it makes that harder.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
extract sections

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Specific Text Strings PWH68 Word VBA 6 10-08-2019 02:07 AM
Help on Extracting Outline Level Of Tracked Changes To New Document doeclapton Word VBA 1 07-24-2019 07:01 AM
Extracting lines containing specific word. S.Allen Word VBA 1 03-27-2015 10:50 PM
Extracting specific rows sbdk82 Excel 4 09-07-2014 10:24 PM
extracting specific sections into a new document Need help extracting specific text from one doument to another with macro/VBA. zsmithku Word 1 04-15-2011 03:46 PM

Other Forums: Access Forums

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


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