![]() |
|
#1
|
|||
|
|||
|
Hi Guys,
Try to convert my Word Document into Excel with Property Word Hierarchy For Example, In Word Document 1. Heading 1 1.1 Heading 1.1 The first paragraph xxxxxxx The second paragraph xxxxxx 2. Heading 2 Another Paragraph 2.1 Heading 2.1 One more Paragraph I want to convert this document into Excel with following format. Just wonder can anyone help with that? or any clues?
Last edited by xiazai0003; 06-01-2016 at 07:14 PM. Reason: Formatting is wrong |
|
#2
|
||||
|
||||
|
Did you want to run this macro from Word or from Excel?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
||||
|
||||
|
Cross-posted at: http://www.vbaexpress.com/forum/show...with-Hierarchy & http://www.vbaexpress.com/forum/show...Word-Hierarchy
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184 Kindly provide cross-posts link in both your threads at VBA Express.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#4
|
|||
|
|||
|
Yes, just find something works in WORD to convert a document to Excel with Hierarchy |
|
#5
|
||||
|
||||
|
I see that you have still not had the courtesy to provide a cross-post link at VBA Express. Until you do, there will be no progress here.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#6
|
||||
|
||||
|
Basic workflow would be to use a macro to:
- For each paragraph: If outline level = body text then add two tabs in front of paragraph - Convert automatic numbers to hard coded - Convert entire doc to table (using tabs as separators) - Paste into Excel
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#7
|
|||
|
|||
|
Quote:
Sorry for that, Newbie for forum and did not realize there is a rule for that. Want to update my original Post but there is no 'Edit' button |
|
#8
|
||||
|
||||
|
You could just post a reply there, with a link to this thread...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#9
|
|||
|
|||
|
Here are two cross links
1.http://www.vbaexpress.com/forum/show...Word-Hierarchy 2.http://www.vbaexpress.com/forum/show...with-Hierarchy Quote:
|
|
#10
|
|||
|
|||
|
Thanks, just start to learn VBA...
|
|
#11
|
|||
|
|||
|
Thanks!~~~~~~~~
|
|
#12
|
||||
|
||||
|
You still haven't posted your cross-post thinks to this thread at VBA express. Kindly do so.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Why is a Word document coming up as this? How do I convert?
|
zooeyhall | Word | 2 | 10-01-2015 06:22 AM |
Convert word document to pdf
|
Catty | Word VBA | 1 | 12-11-2013 03:57 PM |
Convert a word document in an empty one with backgrounds
|
Esgrimidor | Word VBA | 11 | 12-03-2012 03:44 PM |
PDF to Word(.doc) document not convert correctly
|
gonner | Word | 1 | 09-10-2011 03:25 AM |
Convert word document to JPEG. The word document may contain headerfooters
|
vijayaram | Word | 1 | 12-30-2009 08:25 AM |