Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default text extraction

I was hoping to develop a macro that extracts specific values from
fairly well sturctured reports in MS Word (Roughly 1000 of them). I do
not expect any miracles, but was hoping to be able to pull out a few
specific values.

Simplified Example report format:

Review No: ########
Code: #####
Title: Aaaaaa
Type: ###

(text)

I could mostly likely key in on the field headings (e.g., Review No:)
and take the next 7 numbers. But I was hoping to run through the
documents with a little more flexibility.

Any feedback on this matter or available open-source or commercial
tools.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 329
Default text extraction

Hi Matt,

If the data you want to keep don't use the same paragraph style as the data
you want to delete, you could use a Word macro to go through the file,
deleting all paras in the unwanted styles.

That would leave just the data you want for copying & pasting into Excel.

Cheers


"Matt" wrote in message
oups.com...
I was hoping to develop a macro that extracts specific values from
fairly well sturctured reports in MS Word (Roughly 1000 of them). I do
not expect any miracles, but was hoping to be able to pull out a few
specific values.

Simplified Example report format:

Review No: ########
Code: #####
Title: Aaaaaa
Type: ###

(text)

I could mostly likely key in on the field headings (e.g., Review No:)
and take the next 7 numbers. But I was hoping to run through the
documents with a little more flexibility.

Any feedback on this matter or available open-source or commercial
tools.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default text extraction


You could have the macro search for the title, colon -and- space, then
have it jump to the end of the next word (ctrl+rt.arrow), instead o
always moving *-n-* characters past the title. That way would give
little flexability in the length of the selection.
-------------------------
Ben :cool

--
protonLea
-----------------------------------------------------------------------
protonLeah's Profile: http://www.excelforum.com/member.php...fo&userid=3209
View this thread: http://www.excelforum.com/showthread.php?threadid=53823

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Extraction (parsing) Curtis Excel Worksheet Functions 3 October 21st 09 08:35 PM
Complex text extraction formula RhysPieces Excel Worksheet Functions 4 December 31st 08 10:39 PM
Text string extraction Geoffric Excel Worksheet Functions 5 December 19th 07 07:18 PM
Complicated extraction of text lohwk Excel Discussion (Misc queries) 7 May 28th 06 09:36 PM
Text Extraction Todd Huttenstine Excel Programming 4 April 6th 04 11:08 PM


All times are GMT +1. The time now is 06:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"