Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Import structured data from Word


Hi!

Does anyone know of a way to import srtuctured data from Word to Excel?
I have a 138 page Word document (that I can save as a text file to begin
with) that looks like this:

UL 1
sdjflkdjfklsdfjsdklfj

UL 2
dskfjkldfhjvnmsdff

UL 3
sdkfljlsdkfjsdklfjkf

That I want to import to Excel into the format:

The UL # I want in one column and the "hjkjfhkjsdfhks" in the next.

Is there an easy way to do this or can I write a script somehow that
can sllow me to do this?


Thanks in advance for the help!

Magnus


--
mag7417
------------------------------------------------------------------------
mag7417's Profile: http://www.excelforum.com/member.php...o&userid=28413
View this thread: http://www.excelforum.com/showthread...hreadid=487541

  #2   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Import structured data from Word

If the data is as regular as you put in your example, I would be tempted to
start from Word and export, rather than start from Excel and import. My
approach (and it may not be the best, mind you!) would be to:
Set a range in Word to cover your data
Create a new Excel workbook and set a range to Sheet 1, columns A and B
Set a counter "x" and initiate at 1
Find your UL#, set it into a string
Excel Range.Cells(x,1).Text = string
Find matching data, set into string
Excel Range.Cells(x,2).Text = string
x = x + 1
Lather, rinse, repeat

HTH
Ed

"mag7417" wrote in
message ...

Hi!

Does anyone know of a way to import srtuctured data from Word to Excel?
I have a 138 page Word document (that I can save as a text file to begin
with) that looks like this:

UL 1
sdjflkdjfklsdfjsdklfj

UL 2
dskfjkldfhjvnmsdff

UL 3
sdkfljlsdkfjsdklfjkf

That I want to import to Excel into the format:

The UL # I want in one column and the "hjkjfhkjsdfhks" in the next.

Is there an easy way to do this or can I write a script somehow that
can sllow me to do this?


Thanks in advance for the help!

Magnus


--
mag7417
------------------------------------------------------------------------
mag7417's Profile:

http://www.excelforum.com/member.php...o&userid=28413
View this thread: http://www.excelforum.com/showthread...hreadid=487541



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
Import data from Word cockatoo Excel Worksheet Functions 1 March 31st 08 03:24 PM
How do I Import Data From Excel to Word Angela Excel Discussion (Misc queries) 2 September 26th 07 11:10 AM
Structured references & Quickbooks data Coco Excel Worksheet Functions 0 March 3rd 07 03:34 AM
Help Please:( Import Excel Data To Word hennessey Excel Discussion (Misc queries) 3 February 26th 06 05:13 PM
how can I import excel data to word document powersree Excel Discussion (Misc queries) 1 October 10th 05 12:10 AM


All times are GMT +1. The time now is 07:38 PM.

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

About Us

"It's about Microsoft Excel"