Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2015, 06:28 PM
apo apo is offline Copy selected text to another location automatically Windows 8 Copy selected text to another location automatically Office 2013
Novice
Copy selected text to another location automatically
 
Join Date: Oct 2015
Posts: 1
apo is on a distinguished road
Default Copy selected text to another location automatically

Hi,

I would greatly appreciate your help with eliminating, using macros, an unproductive word process I currently use.

My company uses a word template to prepare our client reports. We gather data in the form of typed text (about 20 pages long in each report). This data leads to two types of insights - strengths and risks. In each report we usually come up with ~10 strengths and ~6 risks. We create a headline (a one sentence description of the strength/risk) for each strength and risk, and under each such headline, we paste selected paragraphs from the 20-pages of raw data as evidence for that particular strength or risk.



Given this context, I would love to understands how I can do the following 2 things:
  1. Create a macro to automatically tag a certain text string/paragraph as a strength or a risk (e.g., I will have around 4-5 paragraphs of evidence for strength 1, 4-5 for strength 2 etc.)
  2. Automatically paste all text strings tagged as strength 1 under the headline for strength 1 in the synthesis section etc. (each separate instance of tagged data needs to be pasted as a separate bullet point)

It would be great if I can keep a dynamic link between the text in both places so I don't have to edit twice. With my limited VBA knowledge, I imagine the solution could look like 10 "strength" buttons and 6 "risk" buttons in the QAT so I can select some text and click on one of these buttons to tag it.
Reply With Quote
  #2  
Old 10-17-2015, 02:43 AM
gmayor's Avatar
gmayor gmayor is offline Copy selected text to another location automatically Windows 7 64bit Copy selected text to another location automatically Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,106
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

'Automatically' may be a bit of a stretch. You are going to have to select the text you 'tag' before you can tag it (or the paragraph containing it), and then you are going to have to run the macro to process the information. However, how do you plan to tag the text. What do you mean by 'tag' in this context.

You could perhaps bookmark the text then insert a cross reference to the bookmark. http://www.gmayor.com/BookmarkandVariableEditor.htm will display all the bookmarks in the document, with their values, and will create cross references. That may help, but until you define what you mean by 'tag' in this context, that's as good as it gets.
__________________
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
Reply

Tags
dynamic, macro, repeat text



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Copy selected text to another location automatically Copy format, size, location s_manoj PowerPoint 5 05-21-2014 07:06 AM
Copy table to another location in the same document Sektor Word VBA 2 03-31-2014 09:28 PM
Copy selected text to another location automatically Find & selected paras with highlighted text & copy to clipboard marceepoo Word VBA 1 09-14-2012 08:20 PM
Copy selected text to another location automatically VBA to copy bookmark to a new location kent Word VBA 5 06-14-2012 02:18 PM

Other Forums: Access Forums

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