[mso] Macro help for MS Word...

  • From: "Shawn McGinniss" <mac734@xxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Wed, 14 Nov 2007 12:50:45 -0500

Is there a way to record a macro that will highlight a range of text, copy
the range, and paste it onto the top of the first page?
I get "email alerts" containing new article abstracts from relevant public
health research, sometimes over a hundred pages long, but there's never a
table of contents.  So I've been going through all of them, copying the
titles of the articles, and pasting them to the top to allow senior faculty
members at Hunter College a more user-friendly way to glean this
information.

Here's an example of the format:

TITLE:          Model-based estimates of HIV acquisition due to prison
>                rape (Article, English)
> AUTHOR:         Pinkerton, SD; Galletly, CL; Seal, DW
> SOURCE:         PRISON JOURNAL 87 (3). SEP 2007. p.295-310 SAGE
>                PUBLICATIONS INC, THOUSAND OAKS
>
> ABSTRACT:       Nearly 1.4 million men are incarcerated in federal and
> state prisons in the United States. These men are disproportionately
> affected by HIV in comparison with the at-large male population. The
> elevated prevalence of HIV infection in U.S. prisons has raised concerns
> over the potential for intraprison HIV transmission due to rape and other
> forms of sexual victimization. However, the number of men who acquire HIV
> after being raped in U.S. prisons is not known. We developed a
> mathematical model of HIV transmission to estimate the likelihood that an
> incarcerated man would become infected as a result of prison rape and to
> provide preliminary estimates of the number of prison rape victims who
> acquire HIV. Our results suggest that between 43 and 93 currently
> incarcerated men already have or will acquire HIV as a result of being
> raped in prison.
>
> --------------------------------------------------------------------------
> TITLE:          Bronchial responsiveness to methacholine and adenosine 5
>                '-monophosphate in young children with asthma: their
> relationship with
>                blood eosinophils and serum eosinophil cationic protein
> (Article, English)
> AUTHOR:         Choi, SH; Kim, DK; Yu, J; Yoo, Y; Koh, YY
> SOURCE:         ALLERGY 62 (10). OCT 2007. p.1119-1124 BLACKWELL
>                PUBLISHING, OXFORD
>
> ABSTRACT:       Bronchial hyperresponsiveness is a characteristic feature
> of asthma, and is usually measured by bronchial challenges using direct
> or indirect stimuli. Blood eosinophil numbers and serum levels of
> eosinophil cationic protein (ECP) are considered as indirect measures of
> airway inflammation in asthma. The aim of this study was to investigate
> whether bronchial responsiveness to adenosine 5'-monophosphate (AMP) is
> more closely associated with blood eosinophil markers, compared with that
> to methacholine, in young children with asthma.
>
> Our results suggest that bronchial responsiveness to AMP is more closely
> related to airway inflammation, compared with that to methacholine, and
> support the potential usefulness of AMP challenges in detecting
> inflammatory changes in young children with asthma.
>
> --------------------------------------------------------------------------
> TITLE:          The polymorphisms of Eotaxin 1 and CCR3 genes influence
>                on serum IgE, Eotaxin levels and mild asthmatic children in
> Taiwan
>                (Article, English)
> AUTHOR:         Wang, TN; Chiang, W; Tseng, HI; Chu, YT; Chen, WY; Shih,
>                NH; Ko, YC
> SOURCE:         ALLERGY 62 (10). OCT 2007. p.1125-1130 BLACKWELL
>                PUBLISHING, OXFORD
>
> ABSTRACT:       Asthma is a complex disorder, which is known to be
> affected by interactions between genetic and environmental factors. The
> human Eotaxin 1 and CCR3 attract eosinophils and Th2-lymphocytes to
> migrate to the inflammatory foci that could represent a key mechanism in
> allergy and asthma.
>
> This study finding provide a strong evidence that Eotaxin 1 Thr23Thr
> homozygote has a protective effect on asthma and significantly decreases
> plasma Eotaxin 1 concentrations in asthmatics in Taiwan.
>


The highlighted titles are all I wish to extract, often from very long
documents (100+ pages).

So in theory, I'd like to record a type of "find and copy/paste" macro,
where it searches for any text between "TITLE:" and stops one character
before the A in "AUTHOR," copies that text, and appends it somewhere else
(either the top/bottom of the word doc, a new word doc, or some other
textfile).

This would save me *lots* of time, which is what PCs are supposed to do.  If
only I had the knowledge...I'm familiar with recording actions in Photoshop,
but more advanced script gets very confusing.  Is this possible?  Any help
or advice would be greatly appreciated.


Thanks,

-- 
Shawn McGinniss
Research Assistant,
Center for Community and Urban Health
Hunter College
425 East 25 Street, W808
New York, NY 10010
Tele: (212) 481-4284
Fax: (212) 481-5015


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: